public static boolean nodesEqual(Node thisNode,Node otherNode){
  if (thisNode == otherNode) {
    return true;
  }
  if (thisNode.getNodeType() != otherNode.getNodeType()) {
    return false;
  }
  return true;
}

public static boolean nodesEqual ( Node thisNode , Node otherNode ) { if ( thisNode == otherNode ) { return true ; } if ( thisNode . getNodeType ( ) != otherNode . getNodeType ( ) ) { return false ; } return true ; }
compares 2 nodes for equality . implementation is not complete .
