Reserved prefixes and namespaces: binding another prefix to the xml namespace
<?xml version="1.0"?> <!-- Reserved prefixes and namespaces: binding another prefix to the xml namespace --> <foo xmlns:yml="http://www.w3.org/XML/1998/namespace"/>
Expected result | Actual result for com.jclark.xml.sax.SAX2Driver |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <fatalError/> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startPrefixMapping> <prefix>yml</prefix> <data>http://www.w3.org/XML/1998/namespace</data> </startPrefixMapping> <startElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> </endElement> <endPrefixMapping> <prefix>yml</prefix> </endPrefixMapping> <endDocument/> </ConformanceResults> |