{"id":72409,"library":"xml-matchers","title":"XML Matchers","description":"A collection of Hamcrest matchers for XML documents including XPath, schema validation, and document equivalence.","status":"active","version":"1.0-RC1","language":"java","source_language":null,"source_url":"http://code.google.com/p/xml-matchers/source/browse/tags/xml-matchers-1.0-RC1","tags":["xml","matchers","hamcrest","testing","xpath"],"install":[{"cmd":"<dependency>\n  <groupId>org.xmlmatchers</groupId>\n  <artifactId>xml-matchers</artifactId>\n  <version>1.0-RC1</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'org.xmlmatchers:xml-matchers:1.0-RC1'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"XmlMatchers","correct":"org.xmlmatchers.transform.XmlMatchers"}],"quickstart":{"code":"import static org.xmlmatchers.transform.XmlMatchers.hasXPath;\nimport static org.junit.Assert.assertThat;\nimport javax.xml.transform.Source;\nimport javax.xml.transform.stream.StreamSource;\n\npublic class Example {\n    public void testXPath() {\n        Source xml = new StreamSource(\"test.xml\");\n        assertThat(xml, hasXPath(\"/root/element\"));\n    }\n}","lang":"java","description":"Uses hasXPath matcher to assert an XPath exists in an XML document."},"warnings":[{"fix":"Use with caution; consider waiting for a stable version.","message":"Release candidate: Not a stable release.","severity":"gotcha","affected_versions":"1.0-RC1"}],"env_vars":null,"search_vec":"'collect':4 'document':10,16 'equival':17 'hamcrest':6,20 'includ':11 'matcher':2,7,19 'schema':13 'test':21 'valid':14 'xml':1,9,18 'xpath':12,22","created_at":"2026-06-17T18:38:43.977955+00:00","updated_at":"2026-06-17T18:38:43.977955+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"http://code.google.com/p/xml-matchers/","github":null,"docs":"https://appdoc.app/artifact/org.xmlmatchers/xml-matchers/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}