• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

comparing 2 xml strings

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello! I just would like to ask if there is any tool I could use to compare 2 xml strings. The tool must identify the differences between the 2 xml string: nodes that have been added, deleted, updated, etc. Please help. Thanks a lot.
Tina Ang
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Tina Ang:
Hello! I just would like to ask if there is any tool I could use to compare 2 xml strings. The tool must identify the differences between the 2 xml string: nodes that have been added, deleted, updated, etc. Please help. Thanks a lot.
Tina Ang


Seems like you have to write your own... this link would give you some tips from xslt point of view.
IMHO
 
Tina Ang
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks! However, I need to compare the 2 xml strings from the backend and not using xslt. Do you have other suggestions?! thanks a lot!
TINA
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You might want to check if one of these would help:
http://www.alphaworks.ibm.com/tech/xmldiffmerge
http://www.xmlhack.com/read.php?item=1486
http://www.cs.wisc.edu/~yuanwang/xdiff.html
http://diffxml.sourceforge.net
http://www.deltaxml.com (commercial)
Also, a viable alternative would be to use the Diff class from XMLUnit.
 
reply
    Bookmark Topic Watch Topic
  • New Topic