Utils.java Source code

Java tutorial

Introduction

Here is the source code for Utils.java

Source

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);
    }
}