Jump to content

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?

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...