Simple legal case: default namespace and unbinding
<?xml version="1.0"?> <!-- Simple legal case: default namespace and unbinding --> <foo xmlns="http://example.org/namespace"> <foo xmlns=""/> </foo>
Expected result | Actual result for org.dom4j.io.aelfred.SAXDriver |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startPrefixMapping> <prefix/> <data>http://example.org/namespace</data> </startPrefixMapping> <startElement> <namespaceURI>http://example.org/namespace</namespaceURI> <localName>foo</localName> <qualifiedName>foo</qualifiedName> <attributes/> </startElement> <char>\n</char> <char>\s</char> <startPrefixMapping> <prefix/> <data/> </startPrefixMapping> <startElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> </endElement> <endPrefixMapping> <prefix/> </endPrefixMapping> <char>\n</char> <endElement> <namespaceURI>http://example.org/namespace</namespaceURI> <localName>foo</localName> <qualifiedName>foo</qualifiedName> </endElement> <endPrefixMapping> <prefix/> </endPrefixMapping> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/eduni/namespaces/1.0/021.xml</systemID> </resolveEntity> <startPrefixMapping> <prefix/> <data>http://example.org/namespace</data> </startPrefixMapping> <startElement> <namespaceURI>http://example.org/namespace</namespaceURI> <localName>foo</localName> <qualifiedName>foo</qualifiedName> <attributes/> </startElement> <char>\n</char> <char>\s</char> <startPrefixMapping> <prefix/> <data/> </startPrefixMapping> <startElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName/> <qualifiedName>foo</qualifiedName> </endElement> <endPrefixMapping> <prefix/> </endPrefixMapping> <char>\n</char> <endElement> <namespaceURI/> <localName/> <qualifiedName>foo</qualifiedName> </endElement> <endPrefixMapping> <prefix/> </endPrefixMapping> <endDocument/> </ConformanceResults> |