public boolean equals(Object rawElement) {
    try {
      return equalsXMLElement((IXMLElement)rawElement);
    }
    catch (ClassCastException e) {
      return false;
    }
  }
public boolean equals(Object rawElement)