Re: Schema and groups
David Kavanagh <[email protected]> Wed, 20 Apr 2005 12:19:15 -0400
| Newsgroups | gmane.comp.java.sun.xml.general |
|---|---|
| Message-ID | <[email protected]> |
My intuition would be to define a sequence, and put a choice within. That way you can get from min to max (or unbounded) number of items from the choice (which would be elem 1 2 or 3). David Thus Spoke David Nielsen: > Hi.. > I have a little trouble defining a group in my xsd schema. > > I have a tag in my xml which have some sub elements > eks: > > <TEST> > <ELEM1> > <ELEM2> > <ELEM3> > </TEST> > > How do i define in my xsd schema that any element (ELEM1/2/3), can > accour any number of times, in any order and none of them are required. > > I cant use: <xsd:sequence> because they can come in any order, > I cant use: <xsd:choice> because all elements can be there > I cant use: <xsd:all> because its not required that all of them have to > be there. > > How do i do that ? > > > David > > > David > > ----------------------------------------------------- > xml-interest: A list for discussing XML technologies in the Java > Platform. > To post, mailto:[email protected] > Archives at: http://archives.java.sun.com/xml-interest.html > To unsubscribe, mailto:[email protected] the following message; > signoff xml-interest. ----------------------------------------------------- xml-interest: A list for discussing XML technologies in the Java Platform. To post, mailto:[email protected] Archives at: http://archives.java.sun.com/xml-interest.html To unsubscribe, mailto:[email protected] the following message; signoff xml-interest.