The VersionNum of the document entity is 1.1 whereas the VersionNum of the external entity is 1.0. The character #xF901 which is a valid XML 1.1 but an invalid XML 1.0 character is present in both documents.
<?xml version='1.1'?> <!DOCTYPE doc [ <!ELEMENT doc (更root*)> <!ELEMENT 更root EMPTY> <!ENTITY e SYSTEM "ibm77v06.ent"> ]> <doc>&e;</doc>
Expected result | Actual result for gnu.xml.aelfred2.XmlReader |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> <attributes/> </startElement> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/xml-1.1/valid/P77/ibm77v06.ent</systemID> </resolveEntity> <ignorable>\n</ignorable> <startElement> <namespaceURI/> <localName>更root</localName> <qualifiedName>更root</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>更root</localName> <qualifiedName>更root</qualifiedName> </endElement> <startElement> <namespaceURI/> <localName>更root</localName> <qualifiedName>更root</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>更root</localName> <qualifiedName>更root</qualifiedName> </endElement> <startElement> <namespaceURI/> <localName>更root</localName> <qualifiedName>更root</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>更root</localName> <qualifiedName>更root</qualifiedName> </endElement> <endElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <endDocument/> <bug reason="Parser should only throw SAXExceptions" type="java.lang.ArrayIndexOutOfBoundsException">0 >= 0</bug> </ConformanceResults> |