Re: [go-nuts] Help with mapping XML to struct

2017-07-14 Thread Matthew Zimmerman
Chidley worked great for me -- https://github.com/gnewton/chidley On Fri, Jul 14, 2017 at 9:37 PM Matt Harden wrote: > The sample document you gave actually doesn't have any attributes at all. > I guess you meant namespaces? > > Are you leaving out the namespace declarations from your sample? Th

Re: [go-nuts] Help with mapping XML to struct

2017-07-14 Thread Matt Harden
The sample document you gave actually doesn't have any attributes at all. I guess you meant namespaces? Are you leaving out the namespace declarations from your sample? They usually look like xmlns:soapenv="http://some_url";. Those are important to parsing with namespaces in Go. If you don't have

[go-nuts] Help with mapping XML to struct

2017-07-14 Thread Marcin Jurczuk
Hi, I'm stuck at problem how to map XML into Go struct. Most of examples are for xml where you are not storing information in attributes. My have all a lot of data in attrs Example XML: DEVMEMORYINFO 10.1.1.10 1 Any help how should look struct tha