XML_Tree (2.0.0RC2): CData in Input-Files
| From: | Alexander Menk | Date: | Fri, 11 Nov 2005 12:43:37 +0000 |
| Subject: | XML_Tree (2.0.0RC2): CData in Input-Files | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-40406@lists.php.net to get a copy of this message | ||
Hi!
I'm trying to parse, change and save XML Files like this:
--------------------------
<source>
<![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 regards
Alexander Menk