if (parent!=null && other.parent!=null) {
if (!parent.equals(other.parent)) {
return false;
}
Element domElementCopy = domElement.copy();
domElementCopy.clearChildren();
Element otherDomElementCopy = other.domElement.copy();
otherDomElementCopy.clearChildren();
return domElementCopy.toString().equals(otherDomElementCopy.toString());
}
return toString().equals(obj.toString());