Reserved prefixes and namespaces: binding a reserved prefix
<?xml version="1.0"?> <!-- Reserved prefixes and namespaces: binding a reserved prefix --> <foo xmlns:xml2="http://example.org/namespace"/>
Expected result | Actual result for org.apache.crimson.parser.XMLReaderImpl |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startPrefixMapping> <prefix>xml2</prefix> <data>http://example.org/namespace</data> </startPrefixMapping> <startElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> </endElement> <endPrefixMapping> <prefix>xml2</prefix> </endPrefixMapping> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startPrefixMapping> <prefix>xml2</prefix> <data>http://example.org/namespace</data> </startPrefixMapping> <startElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> </endElement> <endPrefixMapping> <prefix>xml2</prefix> </endPrefixMapping> <endDocument/> </ConformanceResults> |