Here you can find the source of getElementAttr(Element element, String attr)
Parameter | Description |
---|---|
element | a parameter |
attr | a parameter |
public static String getElementAttr(Element element, String attr)
//package com.java2s; //License from project: Apache License import org.w3c.dom.Element; public class Main { /**/* w w w . j a va2 s . c om*/ * Get the value of the attribute of the element * * @param element * @param attr * @return */ public static String getElementAttr(Element element, String attr) { return element.getAttribute(attr); } }