anuj_sharma -3 Junior Poster

Hi,

I have two XML files namely (1)'message_gen.xml' and (2)'message_user.xml'.

The (2) file is correct and the (2) is generated by an application. The (2) file should be same as that of the (1) file i.e. it should have the same elements, the same element content.
I am currently using SAX API to parse the XMl files.I have currently written code for the comparison of the element content in both the files which is working perfectly fine.

But, I need some logical help in the following:

1)If the (1) file is missing some elements which (2) has, then how to find this out.

2)If the location of the elements differ, how to find this out.

Please advise on how I can implement this.

Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.