Test case sgml02: net.sf.saxon.aelfred.SAXDriver Failed

Test case sgml02: net.sf.saxon.aelfred.SAXDriver Failed

XML declaration must be at the very beginning of a document; it"s not a processing instruction

 <?xml version="1.0"?>
    <!-- SGML-ism:  XML PI not at beginning -->
<!DOCTYPE root [ <!ELEMENT root EMPTY> ]>
<root/>
Expected resultActual result for net.sf.saxon.aelfred.SAXDriver
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <fatalError/>
    <endDocument/>
</ConformanceResults>
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <resolveEntity>
        <systemID>file:/home/elharo/SAXTest/xmlconf/sun/not-wf/sgml02.xml</systemID>
    </resolveEntity>
    <fatalError/>
    <endDocument/>
</ConformanceResults>