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

Dont parse xml special characters in attribute #9

Open
GoogleCodeExporter opened this issue Jul 4, 2015 · 2 comments
Open

Dont parse xml special characters in attribute #9

GoogleCodeExporter opened this issue Jul 4, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

We have problem that special xlm characters (i.e > < &) are not parsed
correctly when read as attribute. When data is sent as CDATA it works fine.
So when reading (iks_load) and writing (iks_save) the same xml file the
data is corrupted since the iks_load handle the & correct.

What steps will reproduce the problem?
1. Create an XML file with data
foo attribe bar="M&M" CDATA=N&N  frotz CDATA=1
<test><foo bar="M&amp;M">N&amp;N</foo><frotz>1</frotz></test>
2. Read the file an only change data in frotz from 1 to 2
3. The result will be
<test><foo bar="M&amp;amp;M">N&amp;N</foo><frotz>2</frotz></test>

What is the expected output? What do you see instead?
The expected output would be
<test><foo bar="M&amp;M">N&amp;N</foo><frotz>2</frotz></test>

What version of the product are you using? On what operating system?
1.2 on Linux (See no changes in 1.3)

Original issue reported on code.google.com by iciv...@gmail.com on 15 Oct 2008 at 6:59

@GoogleCodeExporter
Copy link
Author

Original comment by meduke...@gmail.com on 7 Aug 2009 at 8:42

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

This is a patch that fixes the issue.  It also includes a new test case in 
test-sax.

Original comment by timothy....@gmail.com on 22 Aug 2009 at 5:57

Attachments:

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

No branches or pull requests

1 participant