LINQ to XML Query Help
Posted
by cw
on Stack Overflow
See other posts from Stack Overflow
or by cw
Published on 2010-04-30T22:11:25Z
Indexed on
2010/04/30
22:17 UTC
Read the original article
Hit count: 324
Hello,
I am trying to get a "diff" of 2 xml documents and end up with a list of Elements that are different. Below is the XML, I was wondering if anyone can assist. In the case below, I want the list to contain the "file2.xml" element and the "file3.xml" element because they are both different or new than the first xml document.
Thanks in advance!
<?xml version="1.0" encoding="utf-8" ?>
<versioninfo>
<files>
<file version="1.0">file1.xml</file>
<file version="1.0">file2.xml</file>
</files>
</versioninfo>
<?xml version="1.0" encoding="utf-8" ?>
<versioninfo>
<files>
<file version="1.0">file1.xml</file>
<file version="1.1">file2.xml</file>
<file version="1.0">file3.xml</file>
</files>
</versioninfo>
© Stack Overflow or respective owner