Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML canonicalization and Diff algorithm

 
Sharika Raj
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

As part of a testing i need to canonicalize xml doc and need to verify it using some diff algorithm.can someone refer some third party tool (jars) which i can use for this purpose?
Thanks
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13062
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
searching on google for "xml canonical form" produced a long list of projects, W3C documentation, etc.
Bill
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
XMLUnit might be helpful.
 
Juan Rolando Prieur-Reza
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Lasse Koskela:
XMLUnit might be helpful.


That should solve the problem for any Pass/Fail testing.

I would add that if you need to measure degree of similarity, the problem is difficult. See XDiff http://www.cs.wisc.edu/niagara/papers/xdiff.pdf .

The general problem is really difficult. See http://citeseer.ist.psu.edu/cache/papers/cs/17263/http:zSzzSzcs.nyu.eduzSzcszSzfacultyzSzcolezSzpaperszSzCHI99.pdf/cole00tree.pdf
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic