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

tinyxml2 fails to parse CDATA section #565

Open
JazzJackR opened this issue Jun 20, 2017 · 1 comment
Open

tinyxml2 fails to parse CDATA section #565

JazzJackR opened this issue Jun 20, 2017 · 1 comment

Comments

@JazzJackR
Copy link

The following is parsed incorrectly:

<input><![CDATA[<</Columns 1024/HSamples[4 /VSamples[5 6]]>>]]></input>
The result is:
<</Columns 1024/HSamples[4 /VSamples[5 6
but should be
<</Columns 1024/HSamples[4 /VSamples[5 6]]>>

The following string works as expected:

<input><![CDATA[<</Columns 1024/HSamples[4 /VSamples[5 6] <</Bits 8/Rows 768>>]/Vectors[5 6]>>]]></input>

result:
<</Columns 1024/HSamples[4 /VSamples[5 6] <</Bits 8/Rows 768>>]/Vectors[5 6]>>

@i124q2n8
Copy link

As far as i know the result is correct. you have to escape ]]>
see https://en.wikipedia.org/wiki/CDATA#Nesting

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