Registry / testing / xmlunit

xmlunit

JSON →
library1.6javamavenunverified

Library for comparing XML documents, validating against schemas, and testing XPath expressions.

<dependency> <groupId>xmlunit</groupId> <artifactId>xmlunit</artifactId> <version>1.6</version> </dependency>
INSTALL
IMPORT
SIG · XMLUNIT
X
xmlunit
testingjavav1.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

XMLUnit
org.custommonkey.xmlunit.XMLUnit

Compares two XML strings for equality.

import org.custommonkey.xmlunit.XMLUnit; public class Main { public static void main(String[] args) throws Exception { String control = "<root><item>value</item></root>"; String test = "<root><item>value</item></root>"; XMLUnit.setIgnoreWhitespace(true); boolean equal = XMLUnit.compareXML(control, test).identical(); System.out.println("XMLs are identical: " + equal); } }
Debug
Known issues
breakingXMLUnit 1.x is outdated; consider upgrading to XMLUnit 2.x for better API and support.
fix
Use org.xmlunit:xmlunit-core version 2.x.
affects: >=1.0 <2.0
Upgrade
Version history
1.6latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
23 hits · last 30 days
node
22
Resources