Here you can find the source of isAttribute(Node node)
public static boolean isAttribute(Node node)
//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*/ }