Jump to content

hereiam

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by hereiam

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

×
×
  • Create New...