怎样编辑CDATA节点?
modou 2002-12-06 11:11:42 test.xml
<?xml version="1.0" encoding="GB2312"?>
<article>
<id>1</id>
<title>内容1</title>
<content>
<![CDATA[内容2
]]>
</content>
</article>
我这样做
<%
set xmlDoc= Server.CreateObject("microsoft.xmldom")
xmlDoc.async=false
xmlDoc.load server.MapPath("test.xml")
set node=xmlDoc.documentElement.lastChild
node.text="内容3"
''或node.text="<!CDATA["&"内容3"&"]]>"
xmlDoc.save server.MapPath("test.xml")
%>
不行,该怎么办呀?