XML:useCDATA(path [,false])

Set the first text node that is a child of the element at the given path to be a CDATA text node instead of a regular text node. If the second argument is false, the text node will be a regular text node instead of a CDATA text node.

Example

doc = xml.new('test')
doc:setText([[the quick brown fox jumps over the lazy dog]])
doc:useCDATA('/test',true)