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