i need to write a Java Program that will create an xml file based on the difference between two xml file. For eg: say i have two xml files 1.xml and 2.xml .
Now i need to generate a third file 3.xml with the output as follows(In this file the elements common to 1.xml and 2.xml are deleted.Also they should be deleted only if there are no child elements for them.So here the PERSON elememt should not be deleted)
Welcome to the JavaRanch, Vidya. You must have missed our naming policy on the way in, but we ask that everyone use a real-sounding name, both a first and last name separated by a space. It keeps things friendly around here. As for your question, while we love to help people, we ask that you at least Show Some Effort. We aren't going to Do Your Homework, but we will help you solve problems along the way. Have you written any code? Do you have any specific questions or problems we can help with?