When trying to parse a CDATA section that contains JSON with a list inside a list
Eg:
<?xml version="1.0" encoding="UTF-8" ?>
<Test>
<Description>
<![CDATA["Test":["First" : ["Element1", "Element2"]]
]]>
</Description></Test>
VTDGen.parse() outputs
com.ximpleware.ParseException: Error in CDATA: Invalid termination sequence
The problem occurs when there is a "\n" after the pair or "]"
Eg:
<?xml version="1.0" encoding="UTF-8" ?>
<Test>
<Description>
<![CDATA[Test]]
]]>
</Description></Test>
This example works fine:
<?xml version="1.0" encoding="UTF-8" ?>
<Test>
<Description>
<![CDATA[Test]]]]>
</Description>
</Test>
yes this bug is now fixed... check out the latest vtdGen.java