Test case ibm-valid-P43-ibm43v01.xml: gnu.xml.aelfred2.XmlReader Failed

Test case ibm-valid-P43-ibm43v01.xml: gnu.xml.aelfred2.XmlReader Failed

Tests content with all possible constructs: element, CharData, Reference, CDSect, Comment

<?xml version="1.0"?>
<!DOCTYPE root [
  <!ELEMENT root (a,b)>
  <!ELEMENT a EMPTY>
  <!ELEMENT b (#PCDATA|c)* >
  <!ELEMENT c ANY>
  <!ENTITY inContent "<b>General entity reference in element content</b>">
]>
<!--* content: element|CharData|Reference|CDSect|PI|CDSect|PI|Comment *-->
<root><a/><b>
<!-- there is an empty element in the above line -->
   <c></c> 
   CharData: content of b element
   %paaa; : PE reference should not be recognized in element content 
   <c>
<?PIcontent anyProcessingInstruction?>
<!-- Comment content -->
    &inContent;
    Charater reference: &#x41;
    CDSect in content: <![CDATA[ <html>markups<head>HEAD</head><body>nothing</body></html> ]]>
   </c>
</b>
</root>
<!--* test P43 *-->
Expected resultActual result for gnu.xml.aelfred2.XmlReader
<?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>\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>\n</char>
    <char>\s</char>
    <char>\s</char>
    <char>\s</char>
    <char>C</char>
    <char>h</char>
    <char>a</char>
    <char>r</char>
    <char>D</char>
    <char>a</char>
    <char>t</char>
    <char>a</char>
    <char>:</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>
    <char>\s</char>
    <char>\s</char>
    <char>\s</char>
    <char>%</char>
    <char>p</char>
    <char>a</char>
    <char>a</char>
    <char>a</char>
    <char>;</char>
    <char>\s</char>
    <char>:</char>
    <char>\s</char>
    <char>P</char>
    <char>E</char>
    <char>\s</char>
    <char>r</char>
    <char>e</char>
    <char>f</char>
    <char>e</char>
    <char>r</char>
    <char>e</char>
    <char>n</char>
    <char>c</char>
    <char>e</char>
    <char>\s</char>
    <char>s</char>
    <char>h</char>
    <char>o</char>
    <char>u</char>
    <char>l</char>
    <char>d</char>
    <char>\s</char>
    <char>n</char>
    <char>o</char>
    <char>t</char>
    <char>\s</char>
    <char>b</char>
    <char>e</char>
    <char>\s</char>
    <char>r</char>
    <char>e</char>
    <char>c</char>
    <char>o</char>
    <char>g</char>
    <char>n</char>
    <char>i</char>
    <char>z</char>
    <char>e</char>
    <char>d</char>
    <char>\s</char>
    <char>i</char>
    <char>n</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>\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>\n</char>
    <char>\s</char>
    <char>\s</char>
    <char>\s</char>
    <startElement>
        <namespaceURI/>
        <localName>c</localName>
        <qualifiedName>c</qualifiedName>
        <attributes/>
    </startElement>
    <char>\n</char>
    <processingInstruction>
        <target>PIcontent</target>
        <data>anyProcessingInstruction</data>
    </processingInstruction>
    <char>\n</char>
    <char>\n</char>
    <char>\s</char>
    <char>\s</char>
    <char>\s</char>
    <char>\s</char>
    <startElement>
        <namespaceURI/>
        <localName>b</localName>
        <qualifiedName>b</qualifiedName>
        <attributes/>
    </startElement>
    <char>G</char>
    <char>e</char>
    <char>n</char>
    <char>e</char>
    <char>r</char>
    <char>a</char>
    <char>l</char>
    <char>\s</char>
    <char>e</char>
    <char>n</char>
    <char>t</char>
    <char>i</char>
    <char>t</char>
    <char>y</char>
    <char>\s</char>
    <char>r</char>
    <char>e</char>
    <char>f</char>
    <char>e</char>
    <char>r</char>
    <char>e</char>
    <char>n</char>
    <char>c</char>
    <char>e</char>
    <char>\s</char>
    <char>i</char>
    <char>n</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>\s</char>
    <char>c</char>
    <char>o</char>
    <char>n</char>
    <char>t</char>
    <char>e</char>
    <char>n</char>
    <char>t</char>
    <endElement>
        <namespaceURI/>
        <localName>b</localName>
        <qualifiedName>b</qualifiedName>
    </endElement>
    <char>\n</char>
    <char>\s</char>
    <char>\s</char>
    <char>\s</char>
    <char>\s</char>
    <char>C</char>
    <char>h</char>
    <char>a</char>
    <char>r</char>
    <char>a</char>
    <char>t</char>
    <char>e</char>
    <char>r</char>
    <char>\s</char>
    <char>r</char>
    <char>e</char>
    <char>f</char>
    <char>e</char>
    <char>r</char>
    <char>e</char>
    <char>n</char>
    <char>c</char>
    <char>e</char>
    <char>:</char>
    <char>\s</char>
    <char>A</char>
    <char>\n</char>
    <char>\s</char>
    <char>\s</char>
    <char>\s</char>
    <char>\s</char>
    <char>C</char>
    <char>D</char>
    <char>S</char>
    <char>e</char>
    <char>c</char>
    <char>t</char>
    <char>\s</char>
    <char>i</char>
    <char>n</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>:</char>
    <char>\s</char>
    <char>\s</char>
    <char>&lt;</char>
    <char>h</char>
    <char>t</char>
    <char>m</char>
    <char>l</char>
    <char>&gt;</char>
    <char>m</char>
    <char>a</char>
    <char>r</char>
    <char>k</char>
    <char>u</char>
    <char>p</char>
    <char>s</char>
    <char>&lt;</char>
    <char>h</char>
    <char>e</char>
    <char>a</char>
    <char>d</char>
    <char>&gt;</char>
    <char>H</char>
    <char>E</char>
    <char>A</char>
    <char>D</char>
    <char>&lt;</char>
    <char>/</char>
    <char>h</char>
    <char>e</char>
    <char>a</char>
    <char>d</char>
    <char>&gt;</char>
    <char>&lt;</char>
    <char>b</char>
    <char>o</char>
    <char>d</char>
    <char>y</char>
    <char>&gt;</char>
    <char>n</char>
    <char>o</char>
    <char>t</char>
    <char>h</char>
    <char>i</char>
    <char>n</char>
    <char>g</char>
    <char>&lt;</char>
    <char>/</char>
    <char>b</char>
    <char>o</char>
    <char>d</char>
    <char>y</char>
    <char>&gt;</char>
    <char>&lt;</char>
    <char>/</char>
    <char>h</char>
    <char>t</char>
    <char>m</char>
    <char>l</char>
    <char>&gt;</char>
    <char>\s</char>
    <char>\n</char>
    <char>\s</char>
    <char>\s</char>
    <char>\s</char>
    <endElement>
        <namespaceURI/>
        <localName>c</localName>
        <qualifiedName>c</qualifiedName>
    </endElement>
    <char>\n</char>
    <endElement>
        <namespaceURI/>
        <localName>b</localName>
        <qualifiedName>b</qualifiedName>
    </endElement>
    <ignorable>\n</ignorable>
    <endElement>
        <namespaceURI/>
        <localName>root</localName>
        <qualifiedName>root</qualifiedName>
    </endElement>
    <endDocument/>
</ConformanceResults>
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
    <startDocument/>
    <endDocument/>
    <bug reason="Parser should only throw SAXExceptions" type="java.lang.ArrayIndexOutOfBoundsException">0 &gt;= 0</bug>
</ConformanceResults>