Jump to content

minOccurs more then 1 option


Guest uriblum

Recommended Posts

Guest uriblum

helloin the min/maxOccurs I need to have not a sequence appearnce of child.example:the node can be of: 0 appearance or 2 appearance or 4 ...(and can't be 1 or 3)

Link to comment
Share on other sites

I don't exactly understand your question. Can you please explain a little more? Are you saying that you only want elements to appear an even number of times?

helloin the min/maxOccurs I need to have not a sequence appearnce of child.example:the node can be of: 0 appearance or 2 appearance or 4 ...(and can't be 1 or 3)

Link to comment
Share on other sites

Maybe you can try to double your elements in the sequence, and let the min/maxOccurs values be anything. Something like :

<xs:sequence minOccurs="0" maxOccurs="unbounded">  <xs:element name="toto"/>  <xs:element ref="toto"/></xs:sequence>

Hope it helps.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...