Uses '&' unquoted in an entity declaration, which is illegal syntax for an entity reference.
<!DOCTYPE doc [ <!ELEMENT doc (#PCDATA)> <!ENTITY e "<![CDATA[Tim & Michael]]>"> ]> <doc>&e;</doc>
Expected result | Actual result for oracle.xml.parser.v2.SAXParser |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <fatalError/> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> <attributes/> </startElement> <char>T</char> <char>i</char> <char>m</char> <char>\s</char> <char>&</char> <char>\s</char> <char>M</char> <char>i</char> <char>c</char> <char>h</char> <char>a</char> <char>e</char> <char>l</char> <endElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |