I have the follwoing xml element:
<FIELD1><COMP VAR="A">text B</COMP> inner text <COMP VAR="B">text B</COMP></FIELD1>
How to annotate this property with JAXB:
protected List<Object> compOrValue;
to have a list of COMP xml elemnts and String values.
Is it possible with JAXB?
Thanks
You can use a combination of @XmlAnyElement and @XmlMixed to achieve this: