XML-Test software is a tool for comparing and identifying differences in XML files, working similarly to the diff utility.
XML-Test has a relaxed concept of containment with a range of features that allow for flexible comparisons. Notably, the tool ignores element order, trims white spaces, and omits comments when checking for containment. It is also possible to ignore specific elements by passing XPath-like paths through the command line. Further, users can configure the tool to ignore text nodes (attribute and element contents) by passing '-notext' on the command line.
When using XML-Test, only the document structure is checked, making it an ideal tool for comparing large XML files with complex document structures. All that is required to use XML-Test is a working Scala installation. Once installed, it's possible to execute the tool using the command 'scala -cp xmldiff.jar com.google.xmldiff.Main.'
Users can supply different parameters to the tool, such as the names of files to compare and elements to ignore by passing their XPath-like paths. For example, the command 'scala -cp xmldiff.jar com.google.xmldiff.Main feed.xml feed-out.xml -i feed/totalResults feed/startIndex feed/itemsPerPage feed/entry/published' will compare the files feed.xml and feed-out.xml, ignoring all 'updated' elements, 'openSearch' elements under 'feed,' and 'content' or 'published' elements inside feed entries.
To use XML-Test, you only need Java Runtime Environment (JRE) 5 or later. This update includes a getting started guide making it easy to use both as a library and a command line tool.
Version 0.2: N/A