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).