Quantcast
Viewing latest article 1
Browse Latest Browse All 3

Answer by lnmx for Golang Xml Unmarshal, No value

The XML input has a <VAST> element at the root -- this corresponds to the VastHtml.VAST field in your struct. So, pass that to xml.Unmarshal as the target value:

err = xml.Unmarshal(xmlDataFromHttp, &xmlData.VAST)

(I agree with Lander that the deeply-nested struct definition is going to be a problem going forward).


Viewing latest article 1
Browse Latest Browse All 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>