Test case ibm-valid-P42-ibm42v01.xml: org.apache.crimson.parser.XMLReaderImpl Passed

Test case ibm-valid-P42-ibm42v01.xml: org.apache.crimson.parser.XMLReaderImpl Passed

Tests ETag with possible combinations of its fields

<?xml version="1.0"?>
<!DOCTYPE root [
  <!ELEMENT root (a,b)>
  <!ELEMENT a EMPTY>
  <!ELEMENT b (#PCDATA|c)* >
  <!ELEMENT c ANY>
]>
<root><a/><b>
   <c></c > : End tag with a space inside
   content of b element
</b></root>
<!--* test P42 *-->

Expected resultActual result for org.apache.crimson.parser.XMLReaderImpl
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <startElement>
        <namespaceURI/>
        <localName>root</localName>
        <qualifiedName>root</qualifiedName>
        <attributes/>
    </startElement>
    <startElement>
        <namespaceURI/>
        <localName>a</localName>
        <qualifiedName>a</qualifiedName>
        <attributes/>
    </startElement>
    <endElement>
        <namespaceURI/>
        <localName>a</localName>
        <qualifiedName>a</qualifiedName>
    </endElement>
    <startElement>
        <namespaceURI/>
        <localName>b</localName>
        <qualifiedName>b</qualifiedName>
        <attributes/>
    </startElement>
    <char>\n</char>
    <char>\s</char>
    <char>\s</char>
    <char>\s</char>
    <startElement>
        <namespaceURI/>
        <localName>c</localName>
        <qualifiedName>c</qualifiedName>
        <attributes/>
    </startElement>
    <endElement>
        <namespaceURI/>
        <localName>c</localName>
        <qualifiedName>c</qualifiedName>
    </endElement>
    <char>\s</char>
    <char>:</char>
    <char>\s</char>
    <char>E</char>
    <char>n</char>
    <char>d</char>
    <char>\s</char>
    <char>t</char>
    <char>a</char>
    <char>g</char>
    <char>\s</char>
    <char>w</char>
    <char>i</char>
    <char>t</char>
    <char>h</char>
    <char>\s</char>
    <char>a</char>
    <char>\s</char>
    <char>s</char>
    <char>p</char>
    <char>a</char>
    <char>c</char>
    <char>e</char>
    <char>\s</char>
    <char>i</char>
    <char>n</char>
    <char>s</char>
    <char>i</char>
    <char>d</char>
    <char>e</char>
    <char>\n</char>
    <char>\s</char>
    <char>\s</char>
    <char>\s</char>
    <char>c</char>
    <char>o</char>
    <char>n</char>
    <char>t</char>
    <char>e</char>
    <char>n</char>
    <char>t</char>
    <char>\s</char>
    <char>o</char>
    <char>f</char>
    <char>\s</char>
    <char>b</char>
    <char>\s</char>
    <char>e</char>
    <char>l</char>
    <char>e</char>
    <char>m</char>
    <char>e</char>
    <char>n</char>
    <char>t</char>
    <char>\n</char>
    <endElement>
        <namespaceURI/>
        <localName>b</localName>
        <qualifiedName>b</qualifiedName>
    </endElement>
    <endElement>
        <namespaceURI/>
        <localName>root</localName>
        <qualifiedName>root</qualifiedName>
    </endElement>
    <endDocument/>
</ConformanceResults>
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <startElement>
        <namespaceURI/>
        <localName>root</localName>
        <qualifiedName>root</qualifiedName>
        <attributes/>
    </startElement>
    <startElement>
        <namespaceURI/>
        <localName>a</localName>
        <qualifiedName>a</qualifiedName>
        <attributes/>
    </startElement>
    <endElement>
        <namespaceURI/>
        <localName>a</localName>
        <qualifiedName>a</qualifiedName>
    </endElement>
    <startElement>
        <namespaceURI/>
        <localName>b</localName>
        <qualifiedName>b</qualifiedName>
        <attributes/>
    </startElement>
    <char>\n</char>
    <char>\s</char>
    <char>\s</char>
    <char>\s</char>
    <startElement>
        <namespaceURI/>
        <localName>c</localName>
        <qualifiedName>c</qualifiedName>
        <attributes/>
    </startElement>
    <endElement>
        <namespaceURI/>
        <localName>c</localName>
        <qualifiedName>c</qualifiedName>
    </endElement>
    <char>\s</char>
    <char>:</char>
    <char>\s</char>
    <char>E</char>
    <char>n</char>
    <char>d</char>
    <char>\s</char>
    <char>t</char>
    <char>a</char>
    <char>g</char>
    <char>\s</char>
    <char>w</char>
    <char>i</char>
    <char>t</char>
    <char>h</char>
    <char>\s</char>
    <char>a</char>
    <char>\s</char>
    <char>s</char>
    <char>p</char>
    <char>a</char>
    <char>c</char>
    <char>e</char>
    <char>\s</char>
    <char>i</char>
    <char>n</char>
    <char>s</char>
    <char>i</char>
    <char>d</char>
    <char>e</char>
    <char>\n</char>
    <char>\s</char>
    <char>\s</char>
    <char>\s</char>
    <char>c</char>
    <char>o</char>
    <char>n</char>
    <char>t</char>
    <char>e</char>
    <char>n</char>
    <char>t</char>
    <char>\s</char>
    <char>o</char>
    <char>f</char>
    <char>\s</char>
    <char>b</char>
    <char>\s</char>
    <char>e</char>
    <char>l</char>
    <char>e</char>
    <char>m</char>
    <char>e</char>
    <char>n</char>
    <char>t</char>
    <char>\n</char>
    <endElement>
        <namespaceURI/>
        <localName>b</localName>
        <qualifiedName>b</qualifiedName>
    </endElement>
    <endElement>
        <namespaceURI/>
        <localName>root</localName>
        <qualifiedName>root</qualifiedName>
    </endElement>
    <endDocument/>
</ConformanceResults>