How to compare two XML files and patch up teh changes to one file

anjana_i
anjana_i used Ask the Experts™
on
I need to compare two XML files . One which is on the system and one in the install . ANd patch up teh differences to the new file during install.

How do I basically compare the two files and patch them up .
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2008
Commented:
Well there is no easy way to do that other than comparing each element in the two XMLs and creating a new one with the desired value. You will have to traverse the two documents and do this. You can use XPath to make this easy for you.

Author

Commented:
Can u please help me with a function to do this

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial