Package org.anchoranalysis.test
Class CompareXML
Object
CompareXML
Compares two XML documents to see if they are equal.
- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
areDocumentsEqual
(Document document1, Document document2) Are two XML-documents equal in content, ignoring whitespace and comments?
-
Method Details
-
areDocumentsEqual
Are two XML-documents equal in content, ignoring whitespace and comments?Note that both objects are normalized during the check, and their state changes permanently.
- Parameters:
document1
- first documentdocument2
- second document- Returns:
- true if their contents match, false otherwise
-