Test case rmt-ns10-022: org.apache.crimson.parser.XMLReaderImpl Passed

Test case rmt-ns10-022: org.apache.crimson.parser.XMLReaderImpl Passed

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 resultActual result for org.apache.crimson.parser.XMLReaderImpl
<?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/>
    <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>