Test case encoding07: com.jclark.xml.sax.SAX2Driver Passed

Test case encoding07: com.jclark.xml.sax.SAX2Driver Passed

Text declarations (which optionally begin any external entity) are required to have "encoding=...".

<!DOCTYPE root [
    <!ELEMENT root EMPTY>

    <!--
	reusing this entity; it's got no markup decls,
	so it's legal except for a missing "encoding=...".
    -->
    <!ENTITY empty SYSTEM "dtd07.dtd">
]>
<root>&empty;</root>
Expected resultActual result for com.jclark.xml.sax.SAX2Driver
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <startElement>
        <namespaceURI/>
        <localName>root</localName>
        <qualifiedName>root</qualifiedName>
        <attributes/>
    </startElement>
    <resolveEntity>
        <systemID>file:/home/elharo/SAXTest/xmlconf/sun/not-wf/dtd07.dtd</systemID>
    </resolveEntity>
    <fatalError/>
    <endDocument/>
</ConformanceResults>
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <startElement>
        <namespaceURI/>
        <localName>root</localName>
        <qualifiedName>root</qualifiedName>
        <attributes/>
    </startElement>
    <resolveEntity>
        <systemID>file:/home/elharo/SAXTest/xmlconf/sun/not-wf/dtd07.dtd</systemID>
    </resolveEntity>
    <fatalError/>
</ConformanceResults>