Java XML Attribute from Element getElementStringValue(Element element, String attribute)

Here you can find the source of getElementStringValue(Element element, String attribute)

Description

get Element String Value

License

Apache License

Declaration

public static String getElementStringValue(Element element, String attribute) 

Method Source Code


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

import org.w3c.dom.Element;

public class Main {
    public static String getElementStringValue(Element element, String attribute) {
        return element.getAttribute(attribute);
    }//from w ww  . jav  a  2  s.  c o m
}

Related

  1. getElementBooleanValue(Element element, String attribute)
  2. getElementBooleanValue(Element element, String attribute, boolean defaultValue)
  3. getElementByAttr(NodeList elements, String attrName)
  4. getElements(Element root, String tagName, String attrName)
  5. getElementsByTagAndAttr(Element parent, String elemName, String attrName, String attrVal)
  6. getElementStringValue(Element element, String attribute)
  7. getElementTextByAttr(Element modsroot, String nodename, String attrname, String attrvalue)
  8. getElementValues(final String elementName, final String attributeValue, final InputStream is)
  9. getFirstAttribute(Element elem, String name, String attrName)