coolyhx / android4me

Automatically exported from code.google.com/p/android4me
0 stars 0 forks source link

Quotes break attributes in AXMLPrinter2 #12

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Have an XML file with " inside an attribute
2. Convert to binary
3. Convert back using AXMLPrinter2
4. Check XML with xmllint

What is the expected output? What do you see instead?

Should be: <tag attr="this is &quot;quoted&quot;">
Is it:     <tag attr="this is "quoted"">

What version of the product are you using? On what operating system?

AXMLPrinter2 as of now. OpenJDK 64bit 6b24-1.11.1-4ubuntu3 (1.6.0_24)

Original issue reported on code.google.com by mbi...@gmail.com on 6 Jun 2012 at 7:16

GoogleCodeExporter commented 8 years ago
The same problem with & and & - even in text nodes:

Should be: <url>http://example.org?param1=val1&param2=val2</url>
Is       : <url>http://example.org?param1=val1¶m2=val2</url>

Original comment by mbi...@gmail.com on 6 Jun 2012 at 7:18