Here you can find the source of isNodeSame(org.w3c.dom.Node node1, org.w3c.dom.Node node2)
public static boolean isNodeSame(org.w3c.dom.Node node1, org.w3c.dom.Node node2)
//package com.java2s; /*/*from ww w . j a v a 2s . c om*/ * Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved. * This software is open source. * See the bottom of this file for the licence. */ public class Main { public static boolean isNodeSame(org.w3c.dom.Node node1, org.w3c.dom.Node node2) { return node1 == node2; } }