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

anjana_i used Ask the Experts™
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 .
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2008
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.


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