Tests CDATA with an illegal sequence. The CDATA contains the string "[[>".
<?xml version="1.0"?> <!DOCTYPE student [ <!ELEMENT student (#PCDATA)> ]> <!-- testing invalid CData with illegal sequence --> <![CDATA[<testing>This is ]]> a test</testing>]]> <student>My Name is SnowMan. </student>
Expected result | Actual result for com.bluecast.xml.Piccolo |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <fatalError/> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <char><</char> <char>t</char> <char>e</char> <char>s</char> <char>t</char> <char>i</char> <char>n</char> <char>g</char> <char>></char> <char>T</char> <char>h</char> <char>i</char> <char>s</char> <char>\s</char> <char>i</char> <char>s</char> <char>\s</char> <fatalError/> <endDocument/> <bug reason="Parser should only throw SAXExceptions" type="java.lang.ArrayIndexOutOfBoundsException">-1</bug> </ConformanceResults> |