OMNamespace one,
OMNamespace two) throws XMLComparisonException {
if (one == null && two == null) {
return;
} else if (one != null && two == null) {
throw new XMLComparisonException(
"First Namespace is NOT null. But the second is null");
} else if (one == null && two != null) {
throw new XMLComparisonException(
"First Namespace is null. But the second is NOT null");
}
if (!one.getName().equals(two.getName())) {
throw new XMLComparisonException(
failureNotice + one + " != " + two);
}
// Do we need to compare prefixes as well
}