XML Unit / News: Recent posts

XMLUnit for Java 2.2.1 Released

This version fixes a bug in DiffBuilder that applies to the withDocumentBuilderFactory method introduced with the 2.2.0 release:

  • The DocumentBuilderFactory set on DiffBuilder wasn't used properly when ignoreWhitespace or normalizeWhitespace has been set.
    Issue #86.

There is no parallel release of XMLUnit.NET as the bug doesn't apply to it.... read more

Posted by Stefan Bodewig 2016-06-19

XMLUnit for Java And XMLUnit.NET 2.2.0 Released

With this release Sources created from strings or byte[]s can be
used more than once. In XMLUnit for Java it is now also possible to
configure the DocumentBuilderFactory used when a DOM document is
created from a non-DOM Source by the DOMDifferenceEngine.

The full list of changes for XMLUnit for Java:

  • Input.fromByteArray and Input.fromString now return Sources that
    can be used multiple times.
    Issue #84.... read more
Posted by Stefan Bodewig 2016-06-05

XMLUnit for Java And XMLUnit.NET 2.1.1 Released

This release fixes a single bug in the CompareMatcher and
ValidationMatcher for Java and the CompareConstraint and
ValidationConstraint for NUnit2 for .NET.

If you are not using the Hamcrest matchers or NUnit2 constraints,
there is no need to upgrade from 2.1.0.

The full list of changes for XMLUnit for Java:

Posted by Stefan Bodewig 2016-04-09

XMLUnit for Java And XMLUnit.NET 2.1.0 Released

The headline feature of this new release are new Hamcrest Matchers /
NUnit Constraints for XPath assertions.

In addition a few DifferenceEvaluator implementations have been added
that may help when transitioning from XMLUnit for Java 1.x and a few
bugs have been fixed, smaller improvements been made.

The full list of changes:

Posted by Stefan Bodewig 2016-03-26

XMLUnit for Java And XMLUnit.NET 2.0 Released

After three alpha releases this is the final release of XMLUnit 2.0.0.

XMLUnit 2.x provides APIs that allow you to

  • compare two XML documents
  • validate XML documents against XML schemas or DTDs
  • validate XML schemas

and provides simplified APIs for evaluating XPath expressions and XSLT transformations.

In addition there are Hamcrest matchers and NUnit constraints that help using XMLUnit as part of unit tests for code that produces XML.... read more

Posted by Stefan Bodewig 2016-03-06

XMLUnit.NET and XMLUnit for Java 2.0.0-alpha-04 Released

This new pre-release introduces two backwards incompatible changes
over 2.0.0-alpha-03:

  • the mapping of DifferenceEngine#setNamespaceContext
    has been inverted from prefix -> URI to URI -> prefix in order
    to be consistent with the same concept in XPathEngine.
  • the SchemaURI propetty of Validator has been removed in XMLUnit.NET
    and pushed to ParsingValidator in XMLUnit for Java.... read more
Posted by Stefan Bodewig 2016-02-06

XMLUnit for Java and XMLUnit.NET 2.0.0-alpha-03 Released

This new pre-release introduces two backwards incompatible changes over 2.0.0-alpha-02:

  • the byXPath ElementSelector was changed so that an XPath of "." refers to the control and test nodes respectively - which is what most would have expected anyway.
  • the ElementSelectors.conditionalBuilder has changed its behavior to stop evaluating the conditions once a when condition has returned true. In alpha-02 the next whens and finally the default ElementSelectors would have been consulted if a when returned true but the associated ElementSelector returned false.... read more
Posted by Stefan Bodewig 2015-12-13

XMLUnit for Java and XMLUnit.NET 2.0.0-alpha-02 Released

XMLUnit 2.0 is a complete rewrite of XMLUnit that is available for
Java and .NET. It builds upon the ideas and experience of XMLUnit for
Java 1.x but comes with a new API and new implementation.

XMLUnit 2.0 consists of a Core library without any external
dependencies and an additional library of Hamcrest Matchers / NUnit
Constraints.

XMLUnit for Java provides a third artifact that provides a
compatibility layer with XMLUnit 1.6 that bridges the old API to the
new implementation.... read more

Posted by Stefan Bodewig 2015-11-22

XMLUnit 2.x Development Moved to GitHub

XMLUnit 2.x Development Moved to GitHub

We are actively working on a re-designed XMLUnit which will be 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 will still be maintained using the Sourceforge infrastructure that has served as well for many years.... read more

Posted by Stefan Bodewig 2015-01-21

XMLUnit for Java 1.6 Released!

XMLUnit for Java 1.6

XMLUnit for Java 1.6 is mostly a bugfix release adressing four issues:

  • If the sought for attribute in ATTR_NAME_NOT_FOUND or node in CHILD_NODE_NOT_FOUND differences is inside an XML namespace, the difference's value is now Java5-QName like {NS-URI}LOCAL-NAME rather than just the local name.
    Issue 65
  • for ATTR_NAME_NOT_FOUND differences the XPath on the side where the attribute exists now points to the attribute itself rather than the parent element.
    Feature 33
  • a new assertXpathEvaluatesTo assertion in XMLAssert combined with a new QualifiedName class allows stringified XPath values to be interpreted as qualified names.
    Feature 25
  • The JAXP 1.3 based validator ignored now uses the xsi:namespaceLocation and xsi:noNamespaceLocation attributes if you specify no schema sources at all.
    Issue 64... read more
Posted by Stefan Bodewig 2014-12-31

XMLUnit for Java 1.5 Released

This new release of XMLUnit for Java creates additional differences when
comparing nodes where one node has children and the other one has none.
While XMLUnit 1.4 would just report a HAS_CHILD_NODES difference,
XMLUnit 1.5 will - in addition - return raise a CHILD_NODELIST_LENGTH as
well as CHILD_NODE_NOT_FOUND differences for each missing node.

The release is available in source and binary form at
https://sourceforge.net/projects/xmlunit/files/xmlunit%20for%20Java/XMLUnit%20for%20Java%201.5/
,
checksums and OpenPGP signatures should be downloaded from
http://xmlunit.sourceforge.net/checksums/ .

Posted by Stefan Bodewig 2013-09-16

XMLUnit for Java 1.4 released

This new release of XMLUnit for Java fixes a few bugs in assertXpathsEqual when applied to paths containing attributes and adds a more refined handling of xsi:type attributes.

The release is available in source and binary form at
https://sourceforge.net/projects/xmlunit/files/xmlunit%20for%20Java/XMLUnit%20for%20Java%201.4/ ,
checksums and OpenPGP signatures should be downloaded from
http://xmlunit.sourceforge.net/checksums/ .

Posted by Stefan Bodewig 2013-02-07

XMLUnit for Java 1.3 Released

This new release of XMLUnit for Java fixes a few bugs and provides a new
option to control what happens when the documents that are compared
contain two XML elements that cannot be matched against each other.

The release is available in source and binary form at
https://sourceforge.net/projects/xmlunit/files/xmlunit%20for%20Java/XMLUnit%20for%20Java%201.3/ ,
checksums and OpenPGP signatures should be downloaded from
http://xmlunit.sourceforge.net/checksums/ .

Posted by Stefan Bodewig 2009-09-21

XMLUnit: for .NET 0.4 Released

XMLUnit extends JUnit and NUnit to enable unit testing of XML. It compares a control XML document to a test document or the result of a transformation, validates documents, and compares the results of XPath expressions.

This is a maintenance release of XMLUnit for .NET which fixes a few
bugs, in particular:

- order of attributes is ignored, this means there will never be a
difference of type 4 anymore.... read more

Posted by Stefan Bodewig 2009-04-30

XMLUnit for Java 1.2 Released

XMLUnit for Java is a library that supports testing of generated XML content.
It supports comparison of XML snippets, DTD and Schema validation, XPath
queries and programmatic tests. XMLUnit offers strong integration with
JUnit but can be used stand-alone or with other test frameworks as well.

Today XMLUnit for Java 1.2 has been released; download it from
https://sourceforge.net/project/showfiles.php?group_id=23187&package_id=15921&release_id=605991... read more

Posted by Stefan Bodewig 2008-06-11

XMLUnit.NET 0.3.1 Released

XMLUnit.NET 0.3.1 is a version of XMLUnit.NET that has been compiled
against NUnit 2.4 and should work on any modern version of Mono as
well as all Microsoft .NET frameworks (only tested on 1.1 and above,
though).

Apart from being compiled against a more modern version of NUnit, only
a few deprecation warnings have been fixed when compared to
XMLUnit.NET 0.3. No features have been added, no bugs have been fixed
(there haven't been any bug reports anyway). Unfortunately no
documentation has been added, either.... read more

Posted by Stefan Bodewig 2008-02-04

XMLUnit for Java 1.1 Released

XMLUnit for Java is a library that supports testing of generated XML content.
It supports comparison of XML snippets, DTD and Schema validation, XPath
queries and programmatic tests. XMLUnit offers strong integration with
JUnit but can be used stand-alone or with other test frameworks as well.

Today XMLUnit for Java 1.1 has been released; download it from
https://sourceforge.net/project/showfiles.php?group_id=23187&package_id=15921&release_id=519570... read more

Posted by Stefan Bodewig 2007-06-29

XMLUnit for Java 1.1 Beta 2 Released

XMLUnit for Java is a library that supports testing of generated XML content.
It supports comparison of XML snippets, DTD and Schema validation, XPath
queries and programmatic tests. XMLUnit offers strong integration with
JUnit but can be used stand-alone or with other test frameworks as well.

Today the second beta of XMLUnit for Java 1.1 has been released; download it from
https://sourceforge.net/project/showfiles.php?group_id=23187&package_id=15921&release_id=502282.... read more

Posted by Stefan Bodewig 2007-05-25

XMLUnit for Java 1.1 Beta 1 Released

Today the first Beta release of XMLUnit for Java 1.1 has been
released; download it from
https://sourceforge.net/project/showfiles.php?group_id=23187&package_id=15921&release_id=502282.

XMLUnit for Java 1.1 fixes all known issues of version 1.0 and adds a
few new features. The most important changes are:

* Support for XML Namespace in XPath tests

* Support for XML Schema validation

* Support for the JAXP 1.3 XPath engine in javax.xml.xpath... read more

Posted by Stefan Bodewig 2007-04-19

XmlUnit.Net v0.2 available

The .Net implementation of XmlUnit moves another step forward with the 0.2 file release. Check it out!

Posted by tim bacon 2003-09-05

XmlUnit for .Net

A 0.1 release of the (c-sharp) code is now available in CVS. XmlUnit for .Net currently provides simple text, attribute, and element node comparisons. Requires NUnit2, and NAnt build file is supplied.

Posted by tim bacon 2003-08-10

XMLUnit version 1. 0 finally available!

It's been a long time coming but it's worth the wait! Now supplies the XPath location of differences and allows greater configurability. Plus the obligatory API enhancements and fixes... now available from CVS and as a file download.

Posted by tim bacon 2003-04-25

XMLUnit 0.8 release

Contains fix for problem with DetailedDiff class and minor API changes... now available from CVS and as a file download.

Posted by tim bacon 2002-09-22

XMLUnit 0.7 released

A minor upgrade of XMLUnit is now available! It contains a bug fix to a problem with the DetailedDiff class and an enhancement to the DifferenceListener class to enable greater user control of the way differences are evaluated.

Posted by tim bacon 2002-08-25

XMLUnit version 0.6 released

DetailedDiff class added to expose all XML differences... HtmlDocumentBuilder class added to allow XMLUnit to work with HTML that is not well-formed XML... plus some fixes (mainly for namespace handling). Enjoy!

Posted by tim bacon 2002-06-11

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks