Simple legal case: default namespace and rebinding
<?xml version="1.0"?> <!-- Simple legal case: default namespace and rebinding --> <foo xmlns="http://example.org/namespace"> <foo xmlns="http://example.org/other-namespace"/> </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>http://example.org/other-namespace</data> </startPrefixMapping> <startElement> <namespaceURI>http://example.org/other-namespace</namespaceURI> <localName>foo</localName> <qualifiedName>foo</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI>http://example.org/other-namespace</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/022.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>http://example.org/other-namespace</data> </startPrefixMapping> <startElement> <namespaceURI>http://example.org/other-namespace</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> |