title: cvc-enumeration-valid: Value '2' is not facet-valid with respect to enumeration '[1]'. It must be a value from the enumeration
body: <p>I am getting error validating with this XML:</p>
  
  <h2>XSD</h2>
  
  <pre><code>&lt;xs:simpleType name="XYZ"&gt;
      &lt;xs:restriction base="xs:nonNegativeInteger"&gt;
        &lt;xs:enumeration value="1"&gt;
        &lt;/xs:enumeration&gt;
        &lt;xs:enumeration value="2"&gt;
        &lt;/xs:enumeration&gt;
      &lt;/xs:restriction&gt;
    &lt;/xs:simpleType&gt;
  </code></pre>
  
  <p>XML value :</p>
  
  
  
  <pre class="lang-html prettyprint-override"><code> &lt;XYZ&gt;2&lt;/XYZ&gt;
  </code></pre>
  
  <h2>Error</h2>
  
  <blockquote>
    <p>cvc-enumeration-valid: Value '2' is not facet-valid with respect to
    enumeration '[1]'. It must be a value from the enumeration.</p>
  </blockquote>
  
  <p>Can anyone please help me to understand the problem?
  How to resolve it ?</p>