Reserved prefixes and namespaces: declaring the xml prefix correctly
<?xml version="1.0"?> <!-- Reserved prefixes and namespaces: declaring the xml prefix correctly --> <foo xmlns:xml="http://www.w3.org/XML/1998/namespace"/>
Expected result | Actual result for oracle.xml.parser.v2.SAXParser |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startPrefixMapping> <prefix>xml</prefix> <data>http://www.w3.org/XML/1998/namespace</data> </startPrefixMapping> <startElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> <attributes> <attribute> <namespaceURI>http://www.w3.org/2000/xmlns/</namespaceURI> <localName>xml</localName> <qualifiedName>xmlns:xml</qualifiedName> <value>http://www.w3.org/XML/1998/namespace</value> <type>CDATA</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> </endElement> <endPrefixMapping> <prefix>xml</prefix> </endPrefixMapping> <endDocument/> </ConformanceResults> |