Quantcast
Channel: Golang Xml Unmarshal, No value - Stack Overflow
Browsing all 3 articles
Browse latest View live

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

View Article



Answer by JimB for Golang Xml Unmarshal, No value

You are trying to unmarshal an xml document with a root of <VAST> into a struct of type VastHtml, which contains VAST as its first field. Pass the VAST element directly to the Unmarshal function...

View Article

Golang Xml Unmarshal, No value

type VastHtml struct { VAST struct { Version string `xml:"version,attr"` Ad struct { Id string `xml:"id,attr"` InLine struct { AdSystem string `xml:"AdSystem"` AdTitle string `xml:"AdTitle"`...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images