Java XML Attribute Get getAttribute(Node node, String name)

Here you can find the source of getAttribute(Node node, String name)

Description

get Attribute

License

Open Source License

Declaration

static public Node getAttribute(Node node, String name) 

Method Source Code


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

import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;

public class Main {
    static public Node getAttribute(Node node, String name) {
        NamedNodeMap attributes = node.getAttributes();

        return attributes.getNamedItem(name);
    }/*from w w w  . j a  va2s .  c om*/
}

Related

  1. getAttribute(Node node, String attributeName, String defaultValue)
  2. getAttribute(Node node, String attrName)
  3. getAttribute(Node node, String localName, String namespaceURI)
  4. getAttribute(Node node, String localName, String namespaceURI)
  5. getAttribute(Node node, String name)
  6. getAttribute(Node node, String name)
  7. getAttribute(Node node, String name)
  8. getAttribute(Node node, String name)
  9. getAttribute(Node node, String name)