hereiam Posted June 24, 2012 Share Posted June 24, 2012 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now