Jump to content

minOccurs more then 1 option


Guest uriblum

Recommended Posts

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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...