Re: XML_Tree (2.0.0RC2): CData in Input-Files
| From: | Arnaud Limbourg | Date: | Sat, 12 Nov 2005 09:26:28 +0000 |
| Subject: | Re: XML_Tree (2.0.0RC2): CData in Input-Files | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-40407@lists.php.net to get a copy of this message | ||
Alexander Menk wrote:
Hi! I'm trying to parse, change and save XML Files like this: -------------------------- <source>Arnaud.<![CDATA[some cdata goes here ...]]> </source> <anothertag>simple data here...</anothertag> -------------------------- When I altered and save the file, the CDATA-mark is lost. Of course I can change the node's use_cdata_section by hand (after parsing the input file) - but I have to do this for every node which originally had a CDATA-mark and there is no proof, that the content is parsed correctly. Basically I want to read the file, alter some tags and write the file back to disk without any other changes I didn't explict request ;-) Is there any solution for this problem? Best regardsAlexander MenkXML_Tree needs some work and a new maintainer basically.