title: how to allow special characters in schema validation of XML
body: <p>I have xml with a tag name  that contains '&amp;' like  D&amp;G .
  This xml is being validated against a XSD that has  element definition for nm as below</p>
  
  <pre><code>&lt;xs:element maxOccurs="1" minOccurs="0" name="nm" type="Max70Text"/&gt;
  
  
  &lt;xs:simpleType name="Max70Text"&gt;
          &lt;xs:restriction base="xs:string"&gt;
              &lt;xs:minLength value="1"/&gt;
              &lt;xs:maxLength value="70"/&gt;
          &lt;/xs:restriction&gt;
      &lt;/xs:simpleType&gt;
  </code></pre>
  
  <p>in the code 
  ....</p>
  
  <pre><code>InputStream is  = new FileInputStream(l_file);
  InputStreamReader isr = new InputStreamReader(is,"UTF-8");
  Source source = new StreamSource(isr);
  schemaValidator.validate(source);
  </code></pre>
  
  <p>...
  i get SAX Error after the validate method is executed. How  can i avoid this exception and make ampersand skip the validation.</p>
  
  <p>Thanks in advance.</p>