1.1 style prefix unbinding
<?xml version="1.1"?> <!-- 1.1 style prefix unbinding --> <foo xmlns:a="http://example.org/namespace"> <bar xmlns:a=""/> </foo>
Expected result | Actual result for com.bluecast.xml.Piccolo |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startPrefixMapping> <prefix>a</prefix> <data>http://example.org/namespace</data> </startPrefixMapping> <startElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> <attributes/> </startElement> <char>\n</char> <char>\s</char> <startPrefixMapping> <prefix>a</prefix> <data/> </startPrefixMapping> <startElement> <namespaceURI/> <localName>bar</localName> <qualifiedName>bar</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>bar</localName> <qualifiedName>bar</qualifiedName> </endElement> <endPrefixMapping> <prefix>a</prefix> </endPrefixMapping> <char>\n</char> <endElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> </endElement> <endPrefixMapping> <prefix>a</prefix> </endPrefixMapping> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startPrefixMapping> <prefix>a</prefix> <data>http://example.org/namespace</data> </startPrefixMapping> <startElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> <attributes/> </startElement> <char>\n</char> <char>\s</char> <startPrefixMapping> <prefix>a</prefix> <data/> </startPrefixMapping> <startElement> <namespaceURI/> <localName>bar</localName> <qualifiedName>bar</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>bar</localName> <qualifiedName>bar</qualifiedName> </endElement> <endPrefixMapping> <prefix>a</prefix> </endPrefixMapping> <char>\n</char> <endElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> </endElement> <endPrefixMapping> <prefix>a</prefix> </endPrefixMapping> <endDocument/> </ConformanceResults> |