The VersionNum of the document entity is 1.1 whereas the VersionNum of the external DTD 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 root SYSTEM "ibm77v03.dtd"> <root> <更node/> </root>
Expected result | Actual result for com.jclark.xml.sax.SAX2Driver |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/xml-1.1/valid/P77/ibm77v03.dtd</systemID> </resolveEntity> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes/> </startElement> <char>\n</char> <char>\s</char> <startElement> <namespaceURI/> <localName>更node</localName> <qualifiedName>更node</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>更node</localName> <qualifiedName>更node</qualifiedName> </endElement> <char>\n</char> <endElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/xml-1.1/valid/P77/ibm77v03.dtd</systemID> </resolveEntity> <fatalError/> </ConformanceResults> |