Test case ibm-not-wf-P01-ibm01n03.xml: com.jclark.xml.sax.SAX2Driver Passed

Test case ibm-not-wf-P01-ibm01n03.xml: com.jclark.xml.sax.SAX2Driver Passed

Tests a document with wrong combination of misc and element. One PI occurs between two elements.

<?xml version="1.0"?>
<!DOCTYPE doc [
   <!ELEMENT doc ANY>
   <!ELEMENT title ANY>
]>
<doc>Wrong combination!</doc>
<?PI after document element?>
<title>Wrong combination!</title>
<?PI after title element?>
Expected resultActual result for com.jclark.xml.sax.SAX2Driver
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <startElement>
        <namespaceURI/>
        <localName>doc</localName>
        <qualifiedName>doc</qualifiedName>
        <attributes/>
    </startElement>
    <char>W</char>
    <char>r</char>
    <char>o</char>
    <char>n</char>
    <char>g</char>
    <char>\s</char>
    <char>c</char>
    <char>o</char>
    <char>m</char>
    <char>b</char>
    <char>i</char>
    <char>n</char>
    <char>a</char>
    <char>t</char>
    <char>i</char>
    <char>o</char>
    <char>n</char>
    <char>!</char>
    <endElement>
        <namespaceURI/>
        <localName>doc</localName>
        <qualifiedName>doc</qualifiedName>
    </endElement>
    <processingInstruction>
        <target>PI</target>
        <data>after\sdocument\selement</data>
    </processingInstruction>
    <fatalError/>
    <endDocument/>
</ConformanceResults>
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <startElement>
        <namespaceURI/>
        <localName>doc</localName>
        <qualifiedName>doc</qualifiedName>
        <attributes/>
    </startElement>
    <char>W</char>
    <char>r</char>
    <char>o</char>
    <char>n</char>
    <char>g</char>
    <char>\s</char>
    <char>c</char>
    <char>o</char>
    <char>m</char>
    <char>b</char>
    <char>i</char>
    <char>n</char>
    <char>a</char>
    <char>t</char>
    <char>i</char>
    <char>o</char>
    <char>n</char>
    <char>!</char>
    <endElement>
        <namespaceURI/>
        <localName>doc</localName>
        <qualifiedName>doc</qualifiedName>
    </endElement>
    <processingInstruction>
        <target>PI</target>
        <data>after\sdocument\selement</data>
    </processingInstruction>
    <fatalError/>
</ConformanceResults>