This method of the Document class passes the text through to the root node, if there is a root node.
public void setText(String text);
setText(String) in ElementImpl.