Java XML Attribute Get getAttribute(Element e, String name)

Here you can find the source of getAttribute(Element e, String name)

Description

get Attribute

License

LGPL

Declaration

public static String getAttribute(Element e, String name) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import org.w3c.dom.Element;

public class Main {
    public static String getAttribute(Element e, String name) {
        return e.hasAttribute(name) ? e.getAttribute(name) : "";
    }/*from ww w . j a va  2s  .  c o  m*/
}

Related

  1. getAttribURL(Element ele, String name, URL docRoot)
  2. getAttribute(Element aElement, String aAttr, String aDefault)
  3. getAttribute(Element e, String attName)
  4. getAttribute(Element e, String attribute)
  5. getAttribute(Element e, String attrName, String def)
  6. getAttribute(Element e, String name)
  7. getAttribute(Element e, String name)
  8. getAttribute(Element e, String name)
  9. getAttribute(Element el, String attrName)