Jump to content
Sign in to follow this  

unique complex type elements

Recommended Posts

Hi there, last time I tried to use xpath unique simple type elements. In this case it works fine.

<?xml version="1.0" encoding="UTF-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:complexType name="root">  <xs:choice minOccurs="1" maxOccurs="3">   <xs:element name="node1" type="xs:string"/>   <xs:element name="node2" type="xs:string"/>   <xs:element name="node3" type="xs:string"/>  </xs:choice></xs:complexType><xs:element name="root" type="root">  <xs:unique name="choiceID">   <xs:selector xpath="."/>   <xs:field xpath="node1"/>   <xs:field xpath="node2"/>   <xs:field xpath="node2"/>  </xs:unique></xs:element></xs:schema>

But is it also possible to use this functionality with elements which have a complex type?

Share this post

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.

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.

Sign in to follow this  

  • Create New...