Namespace inequality test: different escaping
<?xml version="1.0"?> <!-- Namespace inequality test: different escaping --> <!DOCTYPE foo [ <!ELEMENT foo ANY> <!ATTLIST foo xmlns:a CDATA #IMPLIED xmlns:b CDATA #IMPLIED xmlns:c CDATA #IMPLIED> <!ELEMENT bar ANY> <!ATTLIST bar a:attr CDATA #IMPLIED b:attr CDATA #IMPLIED c:attr CDATA #IMPLIED> ]> <foo xmlns:a="http://example.org/~wilbur" xmlns:b="http://example.org/%7ewilbur" xmlns:c="http://example.org/%7Ewilbur"> <bar a:attr="1" b:attr="2" c:attr="3"/> </foo>
Expected result | Actual result for gnu.xml.aelfred2.XmlReader |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startPrefixMapping> <prefix>a</prefix> <data>http://example.org/~wilbur</data> </startPrefixMapping> <startPrefixMapping> <prefix>b</prefix> <data>http://example.org/%7ewilbur</data> </startPrefixMapping> <startPrefixMapping> <prefix>c</prefix> <data>http://example.org/%7Ewilbur</data> </startPrefixMapping> <startElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> <attributes/> </startElement> <char>\n</char> <char>\n</char> <startElement> <namespaceURI/> <localName>bar</localName> <qualifiedName>bar</qualifiedName> <attributes> <attribute> <namespaceURI>http://example.org/~wilbur</namespaceURI> <localName>attr</localName> <qualifiedName>a:attr</qualifiedName> <value>1</value> <type>CDATA</type> </attribute> <attribute> <namespaceURI>http://example.org/%7ewilbur</namespaceURI> <localName>attr</localName> <qualifiedName>b:attr</qualifiedName> <value>2</value> <type>CDATA</type> </attribute> <attribute> <namespaceURI>http://example.org/%7Ewilbur</namespaceURI> <localName>attr</localName> <qualifiedName>c:attr</qualifiedName> <value>3</value> <type>CDATA</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>bar</localName> <qualifiedName>bar</qualifiedName> </endElement> <char>\n</char> <char>\n</char> <endElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> </endElement> <endPrefixMapping> <prefix>a</prefix> </endPrefixMapping> <endPrefixMapping> <prefix>b</prefix> </endPrefixMapping> <endPrefixMapping> <prefix>c</prefix> </endPrefixMapping> <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> |