Test case o-p22pass4: org.dom4j.io.aelfred.SAXDriver Failed

Test case o-p22pass4: org.dom4j.io.aelfred.SAXDriver Failed

XML decl and doctypedecl

<?xml version="1.0"?>
<!--comment--> <?pi?>
<!DOCTYPE doc
[
<!ELEMENT doc EMPTY>
]>

<!--comment--> <?pi?>

<doc/>
Expected resultActual result for org.dom4j.io.aelfred.SAXDriver
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <processingInstruction>
        <target>pi</target>
        <data/>
    </processingInstruction>
    <processingInstruction>
        <target>pi</target>
        <data/>
    </processingInstruction>
    <startElement>
        <namespaceURI/>
        <localName>doc</localName>
        <qualifiedName>doc</qualifiedName>
        <attributes/>
    </startElement>
    <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/oasis/p22pass4.xml</systemID>
    </resolveEntity>
    <processingInstruction>
        <target>pi</target>
        <data/>
    </processingInstruction>
    <processingInstruction>
        <target>pi</target>
        <data/>
    </processingInstruction>
    <startElement>
        <namespaceURI/>
        <localName>doc</localName>
        <qualifiedName>doc</qualifiedName>
        <attributes/>
    </startElement>
    <endElement>
        <namespaceURI/>
        <localName/>
        <qualifiedName>doc</qualifiedName>
    </endElement>
    <endDocument/>
</ConformanceResults>