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

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

Description

get Attribute

License

Open Source License

Declaration

public static String getAttribute(Element e, String attribute) 

Method Source Code

//package com.java2s;

import org.w3c.dom.Element;

public class Main {
    public static String getAttribute(Element e, String attribute) {
        if (e.hasAttribute(attribute))
            return e.getAttribute(attribute);
        return null;
    }/*w ww  .jav a 2  s.  c om*/
}

Related

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