Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > XML-Schema: Is there a way to make different type elements(each type has more than one Element) present in random order?

Reply
Thread Tools

XML-Schema: Is there a way to make different type elements(each type has more than one Element) present in random order?

 
 
Aray
Guest
Posts: n/a
 
      01-05-2007
There were some different type elements. each of the type has arbitary
amount of Elements, and all those Elements is in ramdon order, How Can I
write the Schema file?


 
Reply With Quote
 
 
 
 
Aray
Guest
Posts: n/a
 
      01-05-2007
I found a way: use <group> as following:

<xs:complexType name="testType">
<xs:choice>
<xs:group ref="testGroup" maxOccurs="unbounded" minOccurs="0" />
</xs:choice>
</xs:complexType>
<xs:group name="testGroup">
<xs:choice>
<xs:element name="element1" />
<xs:element name="element2" />
</xs:choice>
</xs:group>

--

"Aray" <1@2.3> дϢ news:enkti9$c25$(E-Mail Removed)99.com...
> There were some different type elements. each of the type has arbitary
> amount of Elements, and all those Elements is in ramdon order, How Can I
> write the Schema file?
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OS present but not present. XPD NZ Computing 4 04-11-2007 11:22 PM
Different way to using idref with more than one XML file ?? jacquesh XML 2 11-08-2006 05:46 PM
More than one instance of HttpApplication present. Why? miha.valencic@gmail.com ASP .Net 5 11-09-2005 08:57 PM
Schema: express that "@a present if and only if @b present", where @a, @b are attributes Ralf Wahner XML 5 12-24-2003 11:37 AM
Which CDP is used if more than one CDP is present? Peter Juentgen Cisco 0 10-22-2003 11:36 AM



Advertisments