Utils.java Source code

Java tutorial

Introduction

Here is the source code for Utils.java

Source

import org.w3c.dom.Element;

public class Utils {
    /**
     * Set an Attribute in an Element
     * @param element the containing Element
     * @param name the attribute name
     * @param value the attribute value
     */
    public static void setAttribute(Element element, String name, String value) {
        element.setAttribute(name, value);
    }
}