Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

no sequence requirement 1

Status
Not open for further replies.

jameshuntcfm

Programmer
Sep 18, 2006
2
US
Hi All,

I have to create a xsd file for xml validation. I need to NOT force sequence for mydate and myname. How should I change my xsd to allow mydate and myname to be in any order?

Thanks!

<xs:schema xmlns:xs=" elementFormDefault="qualified">
<xs:element name="inform">
<xs:complexType>
<xs:sequence>
<xs:element ref="mydate" minOccurs="0"/>
<xs:element ref="myname" minOccurs="0"/>
...
 
I haven't worked much with Schemas, but I'd say try removing the "<xs:sequence>" line.
 
Try replacing :

xs:sequence

with

xs:all

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top