Re: XML_Tree (2.0.0RC2): CData in Input-Files
| From: | Davey Shafik | Date: | Sun, 13 Nov 2005 03:32:29 +0000 |
| Subject: | Re: XML_Tree (2.0.0RC2): CData in Input-Files | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-40408@lists.php.net to get a copy of this message | ||
Arnaud Limbourg wrote:
Alexander Menk wrote:As the lead maintainer of the package I have this to say: XML_Tree should be deprecated, it has no use in PHP 5. Furthermore, the CDATA thing is a limitation of the SAX based parsers. I will be doing no more work on XML_Tree, theres too many issues with it, regarding BC breaks, version numbers, grandafathering it in with new policies, etc, etc, that just make it too much hassle with so little use for it with PHP 5 now out and in wide-spread use. - DaveyHi! I'm trying to parse, change and save XML Files like this: -------------------------- <source>XML_Tree needs some work and a new maintainer basically. 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 Menk