Thanks a lot for that, simplifies my code massively :-)
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegroups.com.
For more options
On 31 Aug 2017, at 09:30, Jeffrey Smith wrote:
>
> I'm trying to Unmarshal multiple XML files that have differing top level
> elements but the rest of the document is identical.
You can use the XMLName attribute for this:
https://play.golang.org/p/4nIrfbaC37
//jb
--
You received this messag
I'm trying to Unmarshal multiple XML files that have differing top level
elements but the rest of the document is identical.
...
...
I have tried adding multiple tags in the struct but it only ever uses the
first one.
type EspFlowCodeOperation struct {
XMLName xml.Name `xml