Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to print the tag element along with the value

 
Saurabh Joshi
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am totally new to this, Please help me out.
By using XMLUnit I have written a code to compare two XML file and show the differences in the output, but along with the differences I want to have the node name at which differences was encountered.

I am getting the following output.

So along with the values where the difference was found, I need to also show the tag at which these differences occur.

Thanks in advance.
Saurabh.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic