break;
}
} else if (ap instanceof Attribute) {
compare ((Attribute)ap, (Attribute)bp);
} else if (ap instanceof Document) {
Document a = (Document)ap;
Document b = (Document)bp;
assertEquals(a.getBaseURI(), b.getBaseURI());
final int sz = a.getContentSize();
assertTrue(sz == b.getContentSize());
for (int i = 0; i < sz; i++) {
compare(a.getContent(i), b.getContent(i));
}
}
}