title: How can I restrict for unique values in XSD
body: <p>Sample XML:</p>
  
  <p>schema validation should be failed:</p>
  
  <pre><code>&lt;Root&gt;
    &lt;A&gt;0&lt;/A&gt;
    &lt;B&gt;0&lt;/B&gt;
    &lt;C&gt;2&lt;/C&gt;
  &lt;/Root&gt;
  </code></pre>
  
  <p>schema validation should be passed:</p>
  
  <pre><code>&lt;Root&gt;
    &lt;A&gt;0&lt;/A&gt;
    &lt;B&gt;1&lt;/B&gt;
    &lt;C&gt;2&lt;/C&gt;
  &lt;/Root&gt;
  </code></pre>
  
  <p>As shown in example there can be different elements viz. A, B, C... All the child elements will be of string type. I want to ensure that all the child elements are having unique values. For example A and B should not have same value. No child element should have same value. XSD should restrict it.</p>
  
  <p>I tried with Unique but it checks for single element. not for different elements.</p>