List of usage examples for org.w3c.dom Element getAttribute
public String getAttribute(String name);
From source file:Main.java
public static String[] asLocations(Element e, String attr) { return e.getAttribute(attr).trim().split("\\s+"); }
From source file:Main.java
public static boolean attributeBoolValue(Element e, String attr) { return e.getAttribute(attr).equals("yes") || e.getAttribute(attr).equals("true"); }
From source file:Main.java
/** * Parses the given attribute of this tag and returns it as a String. *//*from ww w . ja v a2 s. c o m*/ public static String getAttribString(Element ele, String name) { return ele.getAttribute(name); }
From source file:Main.java
public static String getAttrValue(Element elem, String name) { return elem.getAttribute(name); }
From source file:Main.java
public static String getElementAttr(Element element, String attr) { return element.getAttribute(attr); }
From source file:Main.java
public static String getAttribute(Element e, String name) { if (e.getAttribute(name) == null) return ""; return e.getAttribute(name); }
From source file:Main.java
public static String getAttribute(Element elem, String attrName) { return elem.getAttribute(attrName); }
From source file:Main.java
public static String getNodeAttribute(Element element, String attribute) { return element.getAttribute(attribute); }
From source file:Main.java
public static String getAttributeValueByName(Element element, String attrName) { return element.getAttribute(attrName); }
From source file:Main.java
public static boolean hasAttribute(Element element, String attribute) { return element.getAttribute(attribute) != null; }