Reserved prefixes and namespaces: using the xml prefix undeclared
<?xml version="1.0"?> <!-- Reserved prefixes and namespaces: using the xml prefix undeclared --> <foo xml:lang="en"/>
Expected result | Actual result for org.apache.crimson.parser.XMLReaderImpl |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> <attributes> <attribute> <namespaceURI>http://www.w3.org/XML/1998/namespace</namespaceURI> <localName>lang</localName> <qualifiedName>xml:lang</qualifiedName> <value>en</value> <type>CDATA</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> <attributes> <attribute> <namespaceURI>http://www.w3.org/XML/1998/namespace</namespaceURI> <localName>lang</localName> <qualifiedName>xml:lang</qualifiedName> <value>en</value> <type>CDATA</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |