/** * Determine whether two elements qualify for further Difference comparison. * @param control * @param test * @return true if the two elements qualify for further comparison based on * their similar namespace URI and non-namespaced tag name, * false otherwise */ public boolean qualifyForComparison(Element control, Element test) { return control != null && test !=null && equalsNamespace(control, test) && getNonNamespacedNodeName(control).equals(getNonNamespacedNodeName(test)); } /**