Valid use of character data, comments, processing instructions and CDATA sections within the start and end tag.
<!DOCTYPE elem [ <!ELEMENT elem (#PCDATA|elem)*> <!ENTITY ent "<elem>CharData</elem>"> ]> <elem> CharData  <!--comment--> <![CDATA[ <elem> CharData  <!--comment--> <?pi?>&ent;" CharData </elem> ]]> <![CDATA[ <elem> CharData  <!--comment--> <?pi?>&ent;" CharData </elem> ]]> <?pi?>&ent;" CharData </elem>
Expected result | Actual result for gnu.xml.aelfred2.XmlReader |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>elem</localName> <qualifiedName>elem</qualifiedName> <attributes/> </startElement> <char>\n</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>\s</char> <char>\n</char> <char>\n</char> <char>\n</char> <char><</char> <char>e</char> <char>l</char> <char>e</char> <char>m</char> <char>></char> <char>\n</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>#</char> <char>3</char> <char>2</char> <char>;</char> <char>\n</char> <char><</char> <char>!</char> <char>-</char> <char>-</char> <char>c</char> <char>o</char> <char>m</char> <char>m</char> <char>e</char> <char>n</char> <char>t</char> <char>-</char> <char>-</char> <char>></char> <char>\n</char> <char><</char> <char>?</char> <char>p</char> <char>i</char> <char>?</char> <char>></char> <char>&</char> <char>e</char> <char>n</char> <char>t</char> <char>;</char> <char>&</char> <char>q</char> <char>u</char> <char>o</char> <char>t</char> <char>;</char> <char>\n</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>\n</char> <char><</char> <char>/</char> <char>e</char> <char>l</char> <char>e</char> <char>m</char> <char>></char> <char>\n</char> <char>\n</char> <char>\n</char> <char><</char> <char>e</char> <char>l</char> <char>e</char> <char>m</char> <char>></char> <char>\n</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>#</char> <char>3</char> <char>2</char> <char>;</char> <char>\n</char> <char><</char> <char>!</char> <char>-</char> <char>-</char> <char>c</char> <char>o</char> <char>m</char> <char>m</char> <char>e</char> <char>n</char> <char>t</char> <char>-</char> <char>-</char> <char>></char> <char>\n</char> <char><</char> <char>?</char> <char>p</char> <char>i</char> <char>?</char> <char>></char> <char>&</char> <char>e</char> <char>n</char> <char>t</char> <char>;</char> <char>&</char> <char>q</char> <char>u</char> <char>o</char> <char>t</char> <char>;</char> <char>\n</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>\n</char> <char><</char> <char>/</char> <char>e</char> <char>l</char> <char>e</char> <char>m</char> <char>></char> <char>\n</char> <char>\n</char> <processingInstruction> <target>pi</target> <data/> </processingInstruction> <startElement> <namespaceURI/> <localName>elem</localName> <qualifiedName>elem</qualifiedName> <attributes/> </startElement> <char>C</char> <char>h</char> <char>a</char> <char>r</char> <char>D</char> <char>a</char> <char>t</char> <char>a</char> <endElement> <namespaceURI/> <localName>elem</localName> <qualifiedName>elem</qualifiedName> </endElement> <char>"</char> <char>\n</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>\n</char> <endElement> <namespaceURI/> <localName>elem</localName> <qualifiedName>elem</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 >= 0</bug> </ConformanceResults> |