formatOutput=true;$document=$doc1->createElement("document");$document=$doc1->appendChild($document);$webname=$doc1->creat">
输入banner图图片脚本导航/分类

生成XML,字符转义解决方案

生成XML,字符转义
$doc1=new DOMDocument("1.0","utf-8");
$doc1->formatOutput=true;
$document=$doc1->createElement("document");
$document=$doc1->appendChild($document);
$webname=$doc1->createElement("webname");
$webname=$document->appendChild($webname);
$webname->appendChild($doc1->createTextNode(xmlencode('')));
生成的xml是
<![CDATA[ test ]]>
我不想把<>这个转义,应该怎么处理一下,各们帮帮忙吧

------解决方案--------------------
xml有个createCDATASection
不需要你使用这个方式