Is there any way to parse this with jackson-dataformat-xml and XmlMapper?

<Root>
   <Key>key1</Key>
   <Value>value1</Value>
   <Key>key2</Key>
   <Value>value2</Value>
   ...
</Root>

I am parsing the output of something else so I don't have control over the 
format.  There could be an arbitrary number of Key/Value pairs.  If I parse 
into a single key/value field or lists, I only end up with the last 
occurrence of each item in the POJO.

I'm trying to port some JAX-B parsing over to Jackson.  The existing stuff 
is grabbing the data as a List<org.w3c.dom.Node> using @XmlAnyElement and 
then processing it after to group them together.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jackson-user/3eb9e553-2957-450a-89d9-106e51f4153en%40googlegroups.com.

Reply via email to