Java XML Attribute from Element getStringAttribute(Element el, String attribute)

Here you can find the source of getStringAttribute(Element el, String attribute)

Description

get String Attribute

License

Apache License

Declaration

public static String getStringAttribute(Element el, String attribute) 

Method Source Code

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

import org.w3c.dom.Element;

public class Main {
    public static String getStringAttribute(Element el, String attribute) {
        return el.getAttribute(attribute);
    }//ww  w.j av a2s .  c  o m
}

Related

  1. getInteger(final org.w3c.dom.Element element, final String attr, int def)
  2. getIntegerAttribute(Element el, String attribute)
  3. getIntegerAttribute(Element element, String name)
  4. getStringAttr(Element element, String name, String def)
  5. getStringAttribute(Element e, String name, String def)
  6. getStringAttributeValue(Element element, String attribute)
  7. getStringAttributeValue(final Element element, final String attributeName)
  8. getStringAttributeValue(final Element element, final String attributeName)
  9. getTagAttribute(String sTag, String sAtt, Element eElement)