Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import org.w3c.dom.Attr;
import org.w3c.dom.Element;
import org.w3c.dom.NamedNodeMap;

public class Main {

    // return the value of the attribute of the given element with the given name
    public static String getAttrValue(Element elem, String name) {
        return elem.getAttribute(name);
    } // getAttr(Element, String):Attr

}