Here you can find the source of createTextNode(Document doc, String string)
public static Node createTextNode(Document doc, String string)
//package com.java2s; //License from project: Open Source License import org.w3c.dom.Document; import org.w3c.dom.Node; public class Main { public static Node createTextNode(Document doc, String string) { return doc.createTextNode(string); }//from w ww . j a v a2 s .c o m }