Java tutorial
import org.w3c.dom.Document; import org.w3c.dom.Element; public class Utils { /** * Create a new element * @param document Document to contain the new element * @param name the element name * @return new Element */ public static Element createElement(Document document, String name) { Element element; return document.createElement(name); } }