Hi Kevin,

can I take it that you are generating Java sources from the XML schema
at hand ? Or are you trying to manually map this structure ?

Kind Regards
Werner

On 07.03.2011 16:56, Kilroy, Kevin wrote:
> 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.
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to