public class CompareXML extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
areDocumentsEqual(Document document1,
Document document2)
Are two XML-documents equal in content, ignoring whitespace and comments?
|
public static boolean areDocumentsEqual(Document document1, Document document2)
Note that both objects are normalized during the check, and their state changes permanently.
document1
- first documentdocument2
- second documentCopyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.