Hi,
I'm trying to unmarshal some XML that contains 'choice' xsd elements:
<DevicesUnchanged>
<IpAddress>123.456</IpAddress>
<MacAddress>asdf</MacAddress>
<IpAddress>456.789</IpAddress>
<IpAddress>456.7892</
IpAddress>
<IpAddress>456.78900</IpAddress>
</DevicesUnchanged>
Where IpAddress and MacAddress are choice elements in the XSD:
<element name="DevicesUnchanged" minOccurs="0" maxOccurs="1">
<complexType>
<choice minOccurs="0" maxOccurs="unbounded">
<element name="MacAddress" type="string" />
<element name="IpAddress" type="string" />
</choice>
</complexType>
</element>
What I am trying to achieve is to unmarshall the XML into a String[] in my Java
class. Does anybody know how what I have to specify in my castor-mapping.xml to
take care of the unmarshalling?
Thanks inadvance,
Kevin.