XMLUnit 2.x Development Moved to GitHub
XMLUnit provides help with testing code that creates or consumes XML.
XMLUNit 2.x is available for both Java and .NET with a similar API. Development of this version has moved to a GitHub organization[1] with two git repositories for Java and .NET respectively.
All discussion about XMLUnit independent of any version will happen on the XMLUnit general mailing list[2].
XMLUnit for Java 1.x is no longer maintained, please use the legacy artifacts of XMLUnit 2.x if you still need APIs compatible with XMLUnit 1.x. We keep using the Sourceforge infrastructure that has served as well for many years to host forums and mailing lists.
XMLUnit for .NET 0.x is not maintained any longer.
[1] https://github.com/xmlunit
[2] https://sourceforge.net/p/xmlunit/mailman/xmlunit-general/
License
BSD LicenseFollow XML Unit
User Reviews
-
Xmlunit works fine.
-
Xmlunit works great.
-
This app is simply the best. I suggest you guys try it out now.
-
Love its user-friendly interface. Definitely, there's nothing more I could ask for.
-
It Is very useful Library for my tests. The Error Messages (in case of variations) are detailed enough (in most cases i only need the XPath) I initizialize XMLUnit with: @BeforeClass public static void initXmlUnit() { XMLUnit.setIgnoreWhitespace(true); XMLUnit.setIgnoreAttributeOrder(true); XMLUnit.setIgnoreComments(true); XMLUnit.setIgnoreDiffBetweenTextAndCDATA(true); } And run my Tests with : Diff diff = XMLUnit.compareXML(createInputSource(controlXml), createInputSource(resultXml)); diff.overrideDifferenceListener(new MyDifferenceListener()); // Special Cases: ignore some nodes and validate some Nodes with BigDecimal or Date compare() diff.overrideElementQualifier(new MyElementQualifier()); // Special Cases: ignore the Element-order of maxOccure > 1 Elements. assertTrue("XML similar " + diff.toString(), diff.similar()); assertTrue("XML identical " + diff.toString(), diff.identical()); // Helper Method: protected InputSource createInputSource(final byte[] xml) { return new InputSource(new ByteArrayInputStream(xml)); } FAZIT: XML Unit is Easy to Use. BW: is there a release Plan for 1.4? In SVN there are nice new Helper Classes like "ElementSelectors". With friendly regards, Harald