Java XML Attribute from Node getNodeAttributeValue(Node node, String attributeName)

Here you can find the source of getNodeAttributeValue(Node node, String attributeName)

Description

get Node Attribute Value

License

Open Source License

Declaration

public static String getNodeAttributeValue(Node node, String attributeName) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import org.w3c.dom.Element;
import org.w3c.dom.Node;

public class Main {
    public static String getNodeAttributeValue(Node node, String attributeName) {
        return ((Element) node).getAttribute(attributeName);
    }//from  w  w  w .j a va2  s  .  com
}

Related

  1. getNodeAttributes(final Node node)
  2. getNodeAttributesToString(Node node)
  3. getNodeAttributeValue(Node element, String attributeName)
  4. getNodeAttributeValue(Node node, String attribute)
  5. getNodeAttributeValue(Node node, String attributeName)
  6. getNodeAttributeValue(Node node, String attrName)
  7. getNodeAttributeValueNS(Node node, String namespaceURI, String attrName)
  8. getNodeMap(NamedNodeMap artifactAttributes)
  9. getNodesByAttributeValue(Node node, String attrName, String attrValue)