Registry / testing / xml-matchers

xml-matchers

JSON →
library1.0-RC1javamavenunverified

A collection of Hamcrest matchers for XML documents including XPath, schema validation, and document equivalence.

<dependency> <groupId>org.xmlmatchers</groupId> <artifactId>xml-matchers</artifactId> <version>1.0-RC1</version> </dependency>
INSTALL
IMPORT
SIG · XML-MATCHERS
X
xml-matchers
testingjavav1.0-RC1
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.

XmlMatchers
org.xmlmatchers.transform.XmlMatchers

Uses hasXPath matcher to assert an XPath exists in an XML document.

import static org.xmlmatchers.transform.XmlMatchers.hasXPath; import static org.junit.Assert.assertThat; import javax.xml.transform.Source; import javax.xml.transform.stream.StreamSource; public class Example { public void testXPath() { Source xml = new StreamSource("test.xml"); assertThat(xml, hasXPath("/root/element")); } }
Debug
Known issues
gotchaRelease candidate: Not a stable release.
fix
Use with caution; consider waiting for a stable version.
affects: 1.0-RC1
Upgrade
Version history
1.0-RC1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
20
Resources
xml-matchers — mvn dependency:get xml-matchers · libregistry