CDSect's can't nest
<doc> <![CDATA[ <![CDATA[XML doesn't allow CDATA sections to nest]]> ]]> </doc>
Expected result | Actual result for net.sf.saxon.aelfred.SAXDriver |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> <attributes/> </startElement> <char>\n</char> <char>\n</char> <char><</char> <char>!</char> <char>[</char> <char>C</char> <char>D</char> <char>A</char> <char>T</char> <char>A</char> <char>[</char> <char>X</char> <char>M</char> <char>L</char> <char>\s</char> <char>d</char> <char>o</char> <char>e</char> <char>s</char> <char>n</char> <char>'</char> <char>t</char> <char>\s</char> <char>a</char> <char>l</char> <char>l</char> <char>o</char> <char>w</char> <char>\s</char> <char>C</char> <char>D</char> <char>A</char> <char>T</char> <char>A</char> <char>\s</char> <char>s</char> <char>e</char> <char>c</char> <char>t</char> <char>i</char> <char>o</char> <char>n</char> <char>s</char> <char>\s</char> <char>t</char> <char>o</char> <char>\s</char> <char>n</char> <char>e</char> <char>s</char> <char>t</char> <char>\n</char> <fatalError/> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/oasis/p18fail3.xml</systemID> </resolveEntity> <startElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> <attributes/> </startElement> <char>\n</char> <char>\n</char> <char><</char> <char>!</char> <char>[</char> <char>C</char> <char>D</char> <char>A</char> <char>T</char> <char>A</char> <char>[</char> <char>X</char> <char>M</char> <char>L</char> <char>\s</char> <char>d</char> <char>o</char> <char>e</char> <char>s</char> <char>n</char> <char>'</char> <char>t</char> <char>\s</char> <char>a</char> <char>l</char> <char>l</char> <char>o</char> <char>w</char> <char>\s</char> <char>C</char> <char>D</char> <char>A</char> <char>T</char> <char>A</char> <char>\s</char> <char>s</char> <char>e</char> <char>c</char> <char>t</char> <char>i</char> <char>o</char> <char>n</char> <char>s</char> <char>\s</char> <char>t</char> <char>o</char> <char>\s</char> <char>n</char> <char>e</char> <char>s</char> <char>t</char> <fatalError/> <endDocument/> </ConformanceResults> |