Java XML Attribute Exist isAttribute(Node node)

Here you can find the source of isAttribute(Node node)

Description

is Attribute

License

Open Source License

Declaration

public static boolean isAttribute(Node node) 

Method Source Code

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

import org.w3c.dom.Node;

public class Main {
    public static boolean isAttribute(Node node) {
        return node.getNodeType() == Node.ATTRIBUTE_NODE;
    }/*from  w  w w .ja  va2  s  .  co  m*/
}

Related

  1. hasAttribute(Node node, String attributeName, String className)
  2. hasAttributeValue(final Element element, final String attributeName)
  3. hasAttributeValue(Node node, String attributeName, String attributeValue)
  4. hasAttributeValue(String expected, String attribute, Element element)
  5. hasElementWithAttr(Element modsroot, String nodename, String attrname, String attrvalue)
  6. isAttribute(Object obj)
  7. isAttributePresent(XMLStreamReader reader, String name)