{"id":54355,"library":"xmlunit","title":"XMLUnit","description":"Library for comparing XML documents, validating against schemas, and testing XPath expressions.","status":"active","version":"1.6","language":"java","source_language":null,"source_url":"https://sourceforge.net/p/xmlunit/code/HEAD/tree/trunk/","tags":["xml","testing","comparison","validation"],"install":[{"cmd":"<dependency>\n  <groupId>xmlunit</groupId>\n  <artifactId>xmlunit</artifactId>\n  <version>1.6</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'xmlunit:xmlunit:1.6'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"XMLUnit","correct":"org.custommonkey.xmlunit.XMLUnit"}],"quickstart":{"code":"import org.custommonkey.xmlunit.XMLUnit;\n\npublic class Main {\n    public static void main(String[] args) throws Exception {\n        String control = \"<root><item>value</item></root>\";\n        String test = \"<root><item>value</item></root>\";\n        XMLUnit.setIgnoreWhitespace(true);\n        boolean equal = XMLUnit.compareXML(control, test).identical();\n        System.out.println(\"XMLs are identical: \" + equal);\n    }\n}","lang":"java","description":"Compares two XML strings for equality."},"warnings":[{"fix":"Use org.xmlunit:xmlunit-core version 2.x.","message":"XMLUnit 1.x is outdated; consider upgrading to XMLUnit 2.x for better API and support.","severity":"breaking","affected_versions":">=1.0 <2.0"}],"env_vars":null,"search_vec":"'compar':4 'comparison':16 'document':6 'express':13 'librari':2 'schema':9 'test':11,15 'valid':7,17 'xml':5,14 'xmlunit':1 'xpath':12","created_at":"2026-06-15T09:02:00.730615+00:00","updated_at":"2026-06-15T09:02:00.730615+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://www.xmlunit.org/","github":null,"docs":"https://appdoc.app/artifact/xmlunit/xmlunit/","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-15","next_check":"2026-12-12","install_tag":null}}