aspen0883 / xmlwise

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

Plist.fromXml(String xml) does not parse CDATA #8

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
string tag with CDATA value returns an empty string.

eg:

------
<dict>
    <key>itemid</key>
    <integer>5798</integer>
    <key>title</key>
    <string><![CDATA[COMFORT AIR CONDITIONERS (AC)]]></string>
</dict>

------

returns

------
{title=, itemid=5798}
------

I tried to set "documentBuilderFactory.setCoalescing(true);" in 
Xmlwise.getBuilderFactory(), but it does not work.

Any idea?

Original issue reported on code.google.com by julien.r...@gmail.com on 26 Apr 2012 at 4:53

GoogleCodeExporter commented 8 years ago
Yes, I can't read the CDATA section of my xml file. Very blocking for me 
actually. Any plans to fix it ?

Original comment by thekara...@gmail.com on 5 Sep 2012 at 8:09

GoogleCodeExporter commented 8 years ago
The problem is that you are not looking for child nodes of type 
CDATA_SECTION_NODE in the constructor of XmlElement. I ran the test suite with 
the change and the tests passed, but a test with a CDATA section should be 
added.

Original comment by brooksri...@gmail.com on 26 Jul 2013 at 6:11

Attachments: