Simple legal case: prefix rebinding
<?xml version="1.0"?> <!-- Simple legal case: prefix rebinding --> <a:foo xmlns:a="http://example.org/namespace"> <a:foo xmlns:a="http://example.org/other-namespace"/> </a:foo>
Expected result | Actual result for oracle.xml.parser.v2.SAXParser |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startPrefixMapping> <prefix>a</prefix> <data>http://example.org/namespace</data> </startPrefixMapping> <startElement> <namespaceURI>http://example.org/namespace</namespaceURI> <localName>foo</localName> <qualifiedName>a:foo</qualifiedName> <attributes/> </startElement> <char>\n</char> <char>\s</char> <startPrefixMapping> <prefix>a</prefix> <data>http://example.org/other-namespace</data> </startPrefixMapping> <startElement> <namespaceURI>http://example.org/other-namespace</namespaceURI> <localName>foo</localName> <qualifiedName>a:foo</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI>http://example.org/other-namespace</namespaceURI> <localName>foo</localName> <qualifiedName>a:foo</qualifiedName> </endElement> <endPrefixMapping> <prefix>a</prefix> </endPrefixMapping> <char>\n</char> <endElement> <namespaceURI>http://example.org/namespace</namespaceURI> <localName>foo</localName> <qualifiedName>a:foo</qualifiedName> </endElement> <endPrefixMapping> <prefix>a</prefix> </endPrefixMapping> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startPrefixMapping> <prefix>a</prefix> <data>http://example.org/namespace</data> </startPrefixMapping> <startElement> <namespaceURI>http://example.org/namespace</namespaceURI> <localName>foo</localName> <qualifiedName>a:foo</qualifiedName> <attributes> <attribute> <namespaceURI>http://www.w3.org/2000/xmlns/</namespaceURI> <localName>a</localName> <qualifiedName>xmlns:a</qualifiedName> <value>http://example.org/namespace</value> <type>CDATA</type> </attribute> </attributes> </startElement> <ignorable>\n</ignorable> <ignorable>\s</ignorable> <startPrefixMapping> <prefix>a</prefix> <data>http://example.org/other-namespace</data> </startPrefixMapping> <startElement> <namespaceURI>http://example.org/other-namespace</namespaceURI> <localName>foo</localName> <qualifiedName>a:foo</qualifiedName> <attributes> <attribute> <namespaceURI>http://www.w3.org/2000/xmlns/</namespaceURI> <localName>a</localName> <qualifiedName>xmlns:a</qualifiedName> <value>http://example.org/other-namespace</value> <type>CDATA</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI>http://example.org/other-namespace</namespaceURI> <localName>foo</localName> <qualifiedName>a:foo</qualifiedName> </endElement> <endPrefixMapping> <prefix>a</prefix> </endPrefixMapping> <ignorable>\n</ignorable> <endElement> <namespaceURI>http://example.org/namespace</namespaceURI> <localName>foo</localName> <qualifiedName>a:foo</qualifiedName> </endElement> <endPrefixMapping> <prefix>a</prefix> </endPrefixMapping> <endDocument/> </ConformanceResults> |