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