Java XML Attribute Get getAttributeValue(Node node, String attName)

Here you can find the source of getAttributeValue(Node node, String attName)

Description

get Attribute Value

License

Open Source License

Declaration

public static String getAttributeValue(Node node, String attName) 

Method Source Code

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

import org.w3c.dom.Node;

public class Main {
    public static String getAttributeValue(Node node, String attName) {
        Node attr = node.getAttributes().getNamedItem(attName);
        return attr.getNodeValue();
    }//from w  ww  . j av a2s  .co m
}

Related

  1. getAttributeValue(Node iNode, String iAttributeName)
  2. getAttributeValue(Node n, String name)
  3. getAttributeValue(Node n, String name)
  4. getAttributeValue(Node n, String nodePath, String attrName)
  5. getAttributeValue(Node node, String attName)
  6. getAttributeValue(Node node, String attribute)
  7. getAttributeValue(Node node, String attribute)
  8. getAttributeValue(Node node, String attribute)
  9. getAttributeValue(Node node, String attributeName)