Tests construction of internal entity replacement text, using an example in the XML specification.
<!DOCTYPE root SYSTEM "pe00.dtd"> <root>&book;</root>
Expected result | Actual result for oracle.xml.parser.v2.SAXParser |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/sun/valid/pe00.dtd</systemID> </resolveEntity> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes/> </startElement> <char>L</char> <char>a</char> <char>\s</char> <char>P</char> <char>e</char> <char>s</char> <char>t</char> <char>e</char> <char>:</char> <char>\s</char> <char>A</char> <char>l</char> <char>b</char> <char>e</char> <char>r</char> <char>t</char> <char>\s</char> <char>C</char> <char>a</char> <char>m</char> <char>u</char> <char>s</char> <char>,</char> <char>\n</char> <char>©</char> <char>\s</char> <char>1</char> <char>9</char> <char>4</char> <char>7</char> <char>\s</char> <char>É</char> <char>d</char> <char>i</char> <char>t</char> <char>i</char> <char>o</char> <char>n</char> <char>s</char> <char>\s</char> <char>G</char> <char>a</char> <char>l</char> <char>l</char> <char>i</char> <char>m</char> <char>a</char> <char>r</char> <char>d</char> <char>.</char> <char>\s</char> <char>A</char> <char>l</char> <char>l</char> <char>\s</char> <char>r</char> <char>i</char> <char>g</char> <char>h</char> <char>t</char> <char>s</char> <char>\s</char> <char>r</char> <char>e</char> <char>s</char> <char>e</char> <char>r</char> <char>v</char> <char>e</char> <char>d</char> <endElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/sun/valid/pe00.dtd</systemID> </resolveEntity> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes/> </startElement> <char>L</char> <char>a</char> <char>\s</char> <char>P</char> <char>e</char> <char>s</char> <char>t</char> <char>e</char> <char>:</char> <char>\s</char> <char>A</char> <char>l</char> <char>b</char> <char>e</char> <char>r</char> <char>t</char> <char>\s</char> <char>C</char> <char>a</char> <char>m</char> <char>u</char> <char>s</char> <char>,</char> <char>\n</char> <char>©</char> <char>\s</char> <char>1</char> <char>9</char> <char>4</char> <char>7</char> <char>\s</char> <char>É</char> <char>d</char> <char>i</char> <char>t</char> <char>i</char> <char>o</char> <char>n</char> <char>s</char> <char>\s</char> <char>G</char> <char>a</char> <char>l</char> <char>l</char> <char>i</char> <char>m</char> <char>a</char> <char>r</char> <char>d</char> <char>.</char> <char>\s</char> <char>A</char> <char>l</char> <char>l</char> <char>\s</char> <char>r</char> <char>i</char> <char>g</char> <char>h</char> <char>t</char> <char>s</char> <char>\s</char> <char>r</char> <char>e</char> <char>s</char> <char>e</char> <char>r</char> <char>v</char> <char>e</char> <char>d</char> <endElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |