Posts Tagged ‘annotations’

JAXB @XmlAnyElement example

Monday, June 7th, 2010

The problem

I was recently working on a JAXB centric app which was required to capture “arbitary” xml. e.g.

<a>
   <b></b>
   <c></c>
   <d>
       <!-- "Unknown" XML here -->
       <maybee></maybee>
       <maybef></maybef>
       <!-- etc etc -->
   <d />
</d></a>

How could I ever capture the contents of if they could be “anything”?
(more...)

Tags: , , ,
Posted in Development, quick tips | No Comments »