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