return "CanonicalEquivID element is different from parent's";
}
for (int i = 0; i < xrd.getNumLocalIDs(); i++) {
LocalID l = xrd.getLocalIDAt(i);
// search for it in parent
boolean found = false;
for (int j = 0; j < parent.getNumLocalIDs(); j++) {
if (verifySynonymElement(l, parent.getLocalIDAt(j))) {
found = true;
break;
}
}
if (!found) {
return "LocalID element " + l.getValue() + " is not present in parent XRD";
}
}
for (int i = 0; i < xrd.getNumEquivIDs(); i++) {
EquivID e = xrd.getEquivIDAt(i);