I have xml that looks like this:

<node>
  <a>sadasd</a>
  <b>gfdfg</b>
  <a>...</a>
  <b>...</b>
</node>

Where a and be can appear in any order and this order needs to be preserved.

I have managed to Marshal xml decently using a struct such as:

type Holder {
  A A
  B A
}

type A string
type B string

using a MarshalXML method on the "node" type but unmarshalling is
apparently more tricky.

Right now I would just settle for very crude hand parsing if I could just
get the the whole sub tree xml into a string in the corresponding
UnmarshalXML method.

Any ideas? I can't change this unfortunately which I would if I could. It
is hurting us elsewhere as well but it's just too much work atm.

Thx,

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