GetCDataValue method: XmlNode class
Syntax
GetCDataValue()
Description
Use the GetCDataValue method to return the value of the first CDATA section in an XmlNode.
Parameters
None.
Returns
A reference to the value of the first CDATA section as a string.
Example
Local XmlDoc &inXMLDoc;
Local XmlNode &dataNode;
Local XmlNode &cdataNode;
Local string &theData;
&inXMLDoc = CreateXmlDoc("<?xml version='1.0'?><root/>");
&dataNode = &inXMLDoc.DocumentElement.AddElement("data");
&cdataNode = &dataNode.AddCDataSection("this is a bunch of text");
&theData = &dataNode.GetCDataValue();