setText

setText(data: String) updating;

The setText method of the JadeXMLElement class sets the text of the receiver element with the text specified in the data parameter and deletes all existing child elements.