Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 651
  • Last Modified:

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

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 .
1 Solution
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.
anjana_iAuthor Commented:
Can u please help me with a function to do this

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now