The VersionNum of the document entity is 1.1 and that of the external entity 1.0. The external entity contains the invalid XML1.1 but valid XML 1.0 character #x9F.
<?xml version='1.1'?> <!DOCTYPE doc [ <!ELEMENT doc (#PCDATA)> <!ENTITY e SYSTEM "ibm77n06.ent"> ]> <doc>&e;</doc>
Expected result | Actual result for oracle.xml.parser.v2.SAXParser |
---|---|
<?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/not-wf/P77/ibm77n06.ent</systemID> </resolveEntity> <char>\n</char> <fatalError/> <endDocument/> </ConformanceResults> | <?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/not-wf/P77/ibm77n06.ent</systemID> </resolveEntity> <char>\n</char> <char>\u9F</char> <endElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> </endElement> <fatalError/> </ConformanceResults> |