This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Multiple Choice Tag inside Complex Type Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Multiple Choice Tag inside Complex Type" Watch "Multiple Choice Tag inside Complex Type" New topic
Author

Multiple Choice Tag inside Complex Type

Ashish Soni
Greenhorn

Joined: May 25, 2008
Posts: 24
hi all,

Just wanted to know if below XSD is valid or not.

<xs:complexType name="ComplexType1">
<xs:choice>
<xs:element name="ele1" type="xs:string" minOccurs="0" />
<xs:element name="ele2" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
</xs:choice>
<xs:choice>
<xs:element name="ele3" type="xs:string" minOccurs="0" />
<xs:element name="ele4" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
</xs:choice>

</xs:complexType>

Please help
Regards,
Ashish
 
GeeCON Prague 2014
 
subject: Multiple Choice Tag inside Complex Type