Hi, I'm trying to use xmllint to validate the schema, which I believe uses the libxml2 library underneath.
The problem is I have a unusually large schema file in about 10MB. When I do this:
xmllint --schema j9.xsd --noout jsample.xml
I got the following errors:
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?)))).
..... 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!