code: public static Text createTextNode(String value)
     {
        Document doc = getOwnerDocument();
        return doc.createTextNode(value);
     }
docs: Create a org.w3c.dom.Text node.
  This uses the document builder associated with the current thread.