xml-test 0.2

xml-test is a diff-like tool for XML.
xml-test is a diff-like tool for XML.

Checks that an XML document is included in another document. It is handy when testing an application output against a document where element order is different (GData and Atom specs are examples of specifications where element order is unimportant). It has a relaxed notion of containment:

element order is ignored.
whitespace is trimmed.
comments are ignored.
specific elements can be ignored by passing XPath-like paths on the command line.
text nodes (element and attribute content) can be ignored by passing '-notext' on the command line. Only document structure is checked.

You need a working Scala installation to run this program. Then you can run it like this:

scala -cp xmldiff.jar com.google.xmldiff.Main feed.xml feed-out.xml -i feed/totalResults feed/startIndex
feed/itemsPerPage feed/entry/published //updated /feed/entry/content

The above command will compare feed.xml and feed-out.xml, ignoring all updated elements, openSearch elements under feed, and content or published elements inside feed entries.

Requirements:

Java Runtime Environment (JRE) 5 or later

What's New in This Release:

This release includes a getting started guide and is usable as both a library and a command line tool.

last updated on:
April 22nd, 2008, 12:16 GMT
price:
FREE!
developed by:
Iulian Dragos
homepage:
code.google.com
license type:
The Apache License 2.0 
category:
ROOT \ Text Editing&Processing \ Markup

FREE!

In a hurry? Add it to your Download Basket!

user rating 13

2.3/5
 

0/5

Add your review!

SUBMIT