Text class

A Text object represents an XML text node. A text node can only appear in a document as a child of an element.

Text inherits from the Node class, so all functions defined for Node can be used with Text.

Text content

getValue( ) : String

Returns the text content of this node.

var doc = new Document();
var text = doc.createText("this is text");
job.log(1, text.getValue()); //"this is text"