title: xml schema validation for large schema files
body: <p>I'm trying to use xmllint to validate the schema, which I believe uses the libxml2 library underneath. </p>
  
  <p>The problem is I have a unusually large schema file in about 10MB. When I do this:</p>
  
  <pre><code>xmllint --schema j9.xsd --noout jsample.xml
  </code></pre>
  
  <p>I got the following errors:</p>
  
  <pre><code>j9.xsd:65535: element annotation: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': The content is not valid. Expected is (annotation?, (simpleContent | complexContent | ((group | all | choice | sequence)?, ((attribute | attributeGroup)*, anyAttribute?)))).
  j9.xsd:65535: element annotation: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': The content is not valid. Expected is (annotation?, (simpleContent | complexContent | ((group | all | choice | sequence)?, ((attribute | attributeGroup)*, anyAttribute?)))).
  </code></pre>
  
  <p>.....
  This goes on and on. Apparently the line number of error should NOT be 65535, if there is an error. I'm wondering if there is another library that do not have this limitation, or if someone knows how to fix this bug. Thanks!</p>