求助:PHP保存XML的CDATA
依缘 2011-07-09 10:07:05 最近要用到flash读xml的内容。得到路径
<image>
<path><![CDATA[/946894314.jpg]]></path>
<description><![CDATA[aaaa]]></description>
<data><![CDATA[/946894314.jpg]]></data>
</image>
节点我会添加。就是这个CDATA怎么解决的呢。
$path=$doc->createElement("path",$filepath);
$desc=$doc->createElement("description",$description);
$data=$doc->createElement("data",$filepath);
看到有nodeType这个属性。就是不知道怎么用
求助~~~~~~~~~