Tests EntityRef with an extra white space. A white space occurs after the ampersand in the EntityRef in the content of the element "root".
<!DOCTYPE root [ <!ELEMENT root (#PCDATA)> <!ATTLIST root att CDATA #IMPLIED> <!ENTITY aaa "aString"> ]> <root>extra space after ampsand & aaa;</root>
Expected result | Actual result for org.apache.crimson.parser.XMLReaderImpl |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes/> </startElement> <char>e</char> <char>x</char> <char>t</char> <char>r</char> <char>a</char> <char>\s</char> <char>s</char> <char>p</char> <char>a</char> <char>c</char> <char>e</char> <char>\s</char> <char>a</char> <char>f</char> <char>t</char> <char>e</char> <char>r</char> <char>\s</char> <char>a</char> <char>m</char> <char>p</char> <char>s</char> <char>a</char> <char>n</char> <char>d</char> <char>\s</char> <fatalError/> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes/> </startElement> <char>e</char> <char>x</char> <char>t</char> <char>r</char> <char>a</char> <char>\s</char> <char>s</char> <char>p</char> <char>a</char> <char>c</char> <char>e</char> <char>\s</char> <char>a</char> <char>f</char> <char>t</char> <char>e</char> <char>r</char> <char>\s</char> <char>a</char> <char>m</char> <char>p</char> <char>s</char> <char>a</char> <char>n</char> <char>d</char> <char>\s</char> <fatalError/> </ConformanceResults> |