Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VTDGen parse CDATA error #7

Open
Naensma opened this issue Jan 25, 2017 · 2 comments
Open

VTDGen parse CDATA error #7

Naensma opened this issue Jan 25, 2017 · 2 comments

Comments

@Naensma
Copy link

Naensma commented Jan 25, 2017

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>
@jzhang2004
Copy link
Owner

jzhang2004 commented Feb 8, 2017 via email

@Naensma
Copy link
Author

Naensma commented Feb 24, 2017

Nice, thanks so much!

Is there any ETA on that patch/release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants