1 <?xml version="1.1"?>
   2 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
   3              targetNamespace="test">
   4      <xsd:element name="root">
   5          <xsd:complexType>
   6              <xsd:sequence>
   7                  <xsd:element name="child" type="xsd:anyType"/>
   8              </xsd:sequence>
   9          </xsd:complexType>
  10 
  11          <xsd:key name="key1">
  12              <xsd:selector xpath="."/>
  13              <xsd:field xpath="child"/>
  14          </xsd:key>
  15      </xsd:element>
  16 </xsd:schema>