I want to compare two (or more) XMLs files by tags names and attributes names. I`m not interested by values of attributes or nodes.
Searching on google i found XMLDiff Patch ( http://msdn.microsoft.com/en-us/library/aa302294.aspx ), but it not work for me... or i don`t know how to make settings to work for me. File A
<info>
<Retrieve>
<LastNameInfo>
<LNameNum attribute="some_val">1</LNameNum>
<NumPeople>1</NumPeople>
<NameType/>
<LName>TEST</LName>
</LastNameInfo>
<Segment>
<SegNum>1</SegNum>
<Comment>A test</Comment>
</Segment>
<Segment>
<SegNum>2</SegNum>
<Dt>20110910</Dt>
<Comment>B test</Comment>
</Segment>
</Retrieve>
</info>
File B
<info>
<Retrieve>
<LastNameInfo>
<LNameNum attribute="other_val">4</LNameNum>
<NumPeople>1</NumPeople>
<NameType/>
<LName>TEST7</LName>
</LastNameInfo>
<Segment>
<SegNum>1</SegNum>
<Comment>A test</Comment>
</Segment>
<Segment>
<SegNum>2</SegNum>
<Dt>20110910</Dt>
<Comment>B test</Comment>
</Segment>
</Retrieve>
</info>
These two file must be equals.
Thanks!