Java XML Attribute Get getAttribString(Element ele, String name)

Here you can find the source of getAttribString(Element ele, String name)

Description

Parses the given attribute of this tag and returns it as a String.

License

Open Source License

Declaration

public static String getAttribString(Element ele, String name) 

Method Source Code


//package com.java2s;
import org.w3c.dom.*;

public class Main {
    /**//from   w w  w  .  j  ava2s.  c  o m
     * Parses the given attribute of this tag and returns it as a String.
     */
    public static String getAttribString(Element ele, String name) {
        return ele.getAttribute(name);
    }
}

Related

  1. getAttribAsFloat(Element e, String name, Float dft)
  2. getAttribBoolean(Element ele, String name)
  3. getAttribByName(Element node, String name)
  4. getAttribFloat(Element ele, String name)
  5. getAttribIntHex(Element ele, String name)
  6. getAttribURL(Element ele, String name, URL docRoot)
  7. getAttribute(Element aElement, String aAttr, String aDefault)
  8. getAttribute(Element e, String attName)
  9. getAttribute(Element e, String attribute)