XML:setCDATA(path, cdata)

Set the value of the CDATA text node to the string argument. If the single argument form is used, setCDATA will set the value of the CDATA text node that is attached to the current node position. When the two argument form is used, the first argument is used as a path and the second argument is used as the value of the CDATA text node.

Example

doc = xml.parse('<test><typing>the quick brown fox</typing></test>')
doc:setCDATA('/test/typing', 'The quick brown fox jumps over the lazy dog.')