RSS Forums RSS
Please support our XML, XSLT and XPATH advertiser: Programming Forums

Newbie question, schema, complex types and unordered multiple elemets

Join Date: Aug 2007
Posts: 5
Reputation: hughbedo is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
hughbedo hughbedo is offline Offline
Newbie Poster

Re: Newbie question, schema, complex types and unordered multiple elemets

  #3  
Oct 17th, 2007
Originally Posted by MattEvans View Post
replace <sequence> with <choice>, and use the attributes 'minOccurs="0" maxOccurs="unbounded"'. Take out the maxOccurs on each of the potential children in the choice. Something like this:
...


Thanks, that does exactly what I want. It does not seems to do what w3schools says it does:

from http://www.w3schools.com/schema/sche...indicators.asp

The <choice> indicator specifies that either one child element or another can occur:

Is there a more accurate description of what these tags really mean?

Thank you for the help.
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 2:29 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC