The VersionNum of the document entity is 1.1 whereas the VersionNum of the external entity is 1.0. The character #x1FFF 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 (node*)> <!ELEMENT node EMPTY> <!ENTITY e SYSTEM "ibm77v05.ent"> ]> <doc>&e;</doc>
Expected result | Actual result for org.dom4j.io.aelfred.SAXDriver |
---|---|
<?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/ibm77v05.ent</systemID> </resolveEntity> <ignorable>\n</ignorable> <startElement> <namespaceURI/> <localName>node</localName> <qualifiedName>node</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>node</localName> <qualifiedName>node</qualifiedName> </endElement> <startElement> <namespaceURI/> <localName>node</localName> <qualifiedName>node</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>node</localName> <qualifiedName>node</qualifiedName> </endElement> <startElement> <namespaceURI/> <localName>node</localName> <qualifiedName>node</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>node</localName> <qualifiedName>node</qualifiedName> </endElement> <endElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</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/ibm77v05.xml</systemID> </resolveEntity> <fatalError/> <endDocument/> </ConformanceResults> |