Registry / testing / xmlunit-core

xmlunit-core

JSON →
library2.12.0javamavenunverified

XMLUnit for Java provides assertions and utilities for comparing XML documents.

<dependency> <groupId>org.xmlunit</groupId> <artifactId>xmlunit-core</artifactId> <version>2.12.0</version> </dependency>
INSTALL
IMPORT
SIG · XMLUNIT-CORE
X
xmlunit-core
testingjavav2.12.0
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.

DiffBuilder
org.xmlunit.builder.DiffBuilder

Compare two XML strings for differences.

import org.xmlunit.builder.DiffBuilder; import org.xmlunit.diff.Diff; public class Example { public static void main(String[] args) { String control = "<root><item>value</item></root>"; String test = "<root><item>value</item></root>"; Diff diff = DiffBuilder.compare(control).withTest(test).build(); System.out.println("XML similar: " + !diff.hasDifferences()); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.12.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
20
Resources
xmlunit-core — mvn dependency:get xmlunit-core · libregistry