File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes compare two xml with xslt and print the difference Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "compare two xml with xslt and print the difference" Watch "compare two xml with xslt and print the difference" New topic
Author

compare two xml with xslt and print the difference

Ziaur Rahman
Greenhorn

Joined: Feb 08, 2011
Posts: 4
I have two xml files as given below file1.xml and file2.xml

file1.xml


file2.xml



I want to compare these two xml and using test.xsl print the difference. I have got this XSL file also. But i am not getting desired result... where I went wrong can you explain and fix it?


test.xsl





 
It is sorta covered in the JavaRanch Style Guide.
 
subject: compare two xml with xslt and print the difference