Tests both P45 elementDecl and P46 contentspec with possible combinations of their constructs
<?xml version="1.0"?> <!DOCTYPE root [ <!ELEMENT root (#PCDATA|b)* > <!--* P45 no space before the end bracket *--> <!ELEMENT b EMPTY> <!ELEMENT unique ANY> <!ELEMENT unique- ANY> <!ELEMENT unique_ ANY> <!ELEMENT unique. ANY> <!ATTLIST b attr1 CDATA #IMPLIED> <!ATTLIST b attr2 CDATA #IMPLIED> <!ATTLIST b attr3 CDATA #IMPLIED> ]> <root> <b/>without white space <b /> with a white space <b attr1="value1" /> <b attr1="value1" attr2="value2" attr3 = "value3"/> </root> <!--* !!! testing both P45 and p46 *-->
Expected result | Actual 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> <char>\n</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> </endElement> <char>w</char> <char>i</char> <char>t</char> <char>h</char> <char>o</char> <char>u</char> <char>t</char> <char>\s</char> <char>w</char> <char>h</char> <char>i</char> <char>t</char> <char>e</char> <char>\s</char> <char>s</char> <char>p</char> <char>a</char> <char>c</char> <char>e</char> <char>\n</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> </endElement> <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>w</char> <char>h</char> <char>i</char> <char>t</char> <char>e</char> <char>\s</char> <char>s</char> <char>p</char> <char>a</char> <char>c</char> <char>e</char> <char>\n</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>attr1</localName> <qualifiedName>attr1</qualifiedName> <value>value1</value> <type>CDATA</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> </endElement> <char>\n</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>attr1</localName> <qualifiedName>attr1</qualifiedName> <value>value1</value> <type>CDATA</type> </attribute> <attribute> <namespaceURI/> <localName>attr2</localName> <qualifiedName>attr2</qualifiedName> <value>value2</value> <type>CDATA</type> </attribute> <attribute> <namespaceURI/> <localName>attr3</localName> <qualifiedName>attr3</qualifiedName> <value>value3</value> <type>CDATA</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> </endElement> <char>\n</char> <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 >= 0</bug> </ConformanceResults> |