On Sat, Jun 23, 2012 at 4:04 PM, Florian Weimer <
f...@deneb.enyo.de> wrote:
> Is there something else I could try?
Unmarshal is really for data structures, which, as
http://golang.org/pkg/encoding/xml/#bugs points out, have different
properties than pure XML. If you need to preserve ordering, then
Unmarshal isn't going to be of any help, as you discovered.
I think you need to process the XML stream yourself. Note that you can
create an xml.Decoder and pull individual xml tokens out one at a time
in your own parser. Then at least you don't have to deal with all the
tokenization and interpretation of character sequences.
Russ