}
if (!equalNodeList(nodeA.getChildNodes(), nodeB.getChildNodes())) {
return false;
}
if (nodeA.getNodeType() == Node.DOCUMENT_TYPE_NODE) {
DocumentType documentTypeA = (DocumentType) nodeA;
DocumentType documentTypeB = (DocumentType) nodeB;
if (!equalString(documentTypeA.getPublicId(), documentTypeB.getPublicId())) {
return false;
}
if (!equalString(documentTypeA.getSystemId(), documentTypeB.getSystemId())) {
return false;
}
if (!equalString(documentTypeA.getInternalSubset(), documentTypeB.getInternalSubset())) {
return false;
}
if (!equalNamedNodeMap(documentTypeA.getEntities(), documentTypeB.getEntities())) {
return false;
}
if (!equalNamedNodeMap(documentTypeA.getNotations(), documentTypeB.getNotations())) {
return false;
}
}
return true;
}