Here is a playground link: https://play.golang.org/p/_wJEBd1L9x

ABStuff string `xml:",innerxml"`

You can capture the innerxml with an appropriate tag; you can also, as my 
third example in the above link demonstrates, capture multiple repeated 
tags like that to a list of values. If, as I think your comment implies, 
you need to preserve the order of a's and b's AND their order relative to 
each other, that obviously does not help, so the first example demonstrates 
the ,innerxml capture

-- 
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, visit https://groups.google.com/d/optout.

Reply via email to