3 Replies Latest reply: May 27, 2012 7:29 PM by Raja Sekhar Reddy RSS

JAVA Mapping Program to compare Two XML filesUsing SAX Parcer

Raja Sekhar Reddy
Currently Being Moderated

We have a requirement to create a Java program to compare two XMLs and return boolean value.

Using   SAX parser to parse & retrive the values from the XMLs.

 

The program should perform the below checks and return true flag on mismatch and need not continue further checks on true

 

1) XML Root node -> DocType & Version  check

2) Number of Line Items  check

 

Loop on 1st Xml LineItems  {

     Start nested Loop on 2nd Xml LineItems {

          If the 1st XML PurchaseOrderLineItemNumber equals 2nd XML PurchaseOrderLineItemNumber {

          3)PurchaseOrderLineItemNumber

          4)LineStatus

 

 

 

This is my requirement can anyopne help me out....

 

Can any one help me out

 

Edited by: Raja Sekhar Reddy T on Jul 4, 2008 11:13 AM