I cant figure out how to parse an xml schema containing xsd:choice.How do I
parse the following xml document using generateDS? I want to keep the order of
the elements (motorcycle, boat, motorcycle, helicopter).
xsd=======<?xml version="1.0" encoding="UTF-8"?><xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.vehicles.com"
xmlns="http://www.vehicles.com" elementFormDefault="qualified">
<xs:element name="vehicles"> <xs:complexType>
<xs:choice maxOccurs="unbounded" minOccurs="0">
<xs:element name="boat" type="boat"></xs:element>
<xs:element name="helicopter" type="helicopter"></xs:element>
<xs:element name="motorcycle" type="motorcycle"></xs:element>
</xs:choice> </xs:complexType> </xs:element>
<xs:complexType name="boat"></xs:complexType> <xs:complexType
name="helicopter"></xs:complexType> <xs:complexType
name="motorcycle"></xs:complexType>
</xs:schema>
xml=======<?xml version="1.0" encoding="UTF-8"?><v:vehicles
xmlns:v="http://www.vehicles.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.vehicles.com vehicles.xsd "> <v:motorcycle/>
<v:boat/> <v:motorcycle/> <v:helicopter/></v:vehicles>
------------------------------------------------------------------------------
FREE DOWNLOAD - uberSVN with Social Coding for Subversion.
Subversion made easy with a complete admin console. Easy
to use, easy to manage, easy to install, easy to extend.
Get a Free download of the new open ALM Subversion platform now.
http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users