assert (n1 instanceof DTMElement && n2 instanceof DTMElement);
DTMElement e1 = (DTMElement) n1, e2 = (DTMElement) n2;
DTMAttribute att1 = null;
for(int i = 0; (att1 = e1.attribute(i)) != null; i++) {
DTMAttribute att2 = e2.attribute(i);
if(!att1.nodeName().equals(att2.nodeName())) {
return false;
}
final String att1val = att1.getContent();
final String att2val = att2.getContent();
if(collator != null) {