0
Reply

adding cdata area to xml document

cakewalkr7

cakewalkr7

Jul 14 2005 2:19 PM
1.7k
How do you add a cdata node to an xml document and specify the name for it? I've tried the working with the CreateCDataSection method, but I can't get it to set a tag around the cdata with the name in it? Rather than it doing...

<books>
<description><![CDATA[description here]]></description>
</books>

... I keep getting...

<books>
<![CDATA[description here]]>
</books>

I need to get the surrounding <description> tags in there. I've tried setting the prefix which according to the documentation "should" set the name/tag, but it doesn't seem to work.