I want to compare two xml raw files and capture their differences in data. For example,
<Segment>
<SegNum>2</SegNum>
<Dt>20110910</Dt>
<Comment>B test</Comment>
</Segment>
</Retrieve>
</info>
File B:
<info>
<Retrieve>
<LastNameInfo>
<LNameNum>2</LNameNum>
<NameType/>
<LName>TESTING</LName>
</LastNameInfo>
<Segment>
<SegNum>1</SegNum>
<Status>HS</Status>
<Comment>A test</Comment>
</Segment>
<Segment>
<SegNum>2</SegNum>
<Dt>20110</Dt>
<Comment>COULD I USE LINQ</Comment>
</Segment>
</Retrieve>
</info>
so the output i need should be a file with just the differences like
<LNameNum>1</LnameNum> File 2:<Lnamenum>2</Lnamenum>
There is a library (and tool), XML Diff and Patch, published to MSDN a while back that does this.