title: Comparing XML by nodes names and attributes names in C#
body: <p>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.</p>
  
  <p>Searching on google i found XMLDiff Patch ( <a href="http://msdn.microsoft.com/en-us/library/aa302294.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/aa302294.aspx</a> ), but it not work for me... or i don`t know how to make settings to work for me.
  File A</p>
  
  <pre><code>    &lt;info&gt;
    &lt;Retrieve&gt;
      &lt;LastNameInfo&gt;
        &lt;LNameNum attribute="some_val"&gt;1&lt;/LNameNum&gt;
        &lt;NumPeople&gt;1&lt;/NumPeople&gt;
        &lt;NameType/&gt;
        &lt;LName&gt;TEST&lt;/LName&gt;
      &lt;/LastNameInfo&gt;
      &lt;Segment&gt;
        &lt;SegNum&gt;1&lt;/SegNum&gt;
        &lt;Comment&gt;A test&lt;/Comment&gt;
      &lt;/Segment&gt;
      &lt;Segment&gt;
        &lt;SegNum&gt;2&lt;/SegNum&gt;
        &lt;Dt&gt;20110910&lt;/Dt&gt;
        &lt;Comment&gt;B test&lt;/Comment&gt;
      &lt;/Segment&gt;
    &lt;/Retrieve&gt;
  &lt;/info&gt;
  </code></pre>
  
  <p>File B</p>
  
  <pre><code>&lt;info&gt;
    &lt;Retrieve&gt;
      &lt;LastNameInfo&gt;
        &lt;LNameNum attribute="other_val"&gt;4&lt;/LNameNum&gt;
        &lt;NumPeople&gt;1&lt;/NumPeople&gt;
        &lt;NameType/&gt;
        &lt;LName&gt;TEST7&lt;/LName&gt;
      &lt;/LastNameInfo&gt;
      &lt;Segment&gt;
        &lt;SegNum&gt;1&lt;/SegNum&gt;
        &lt;Comment&gt;A test&lt;/Comment&gt;
      &lt;/Segment&gt;
      &lt;Segment&gt;
        &lt;SegNum&gt;2&lt;/SegNum&gt;
        &lt;Dt&gt;20110910&lt;/Dt&gt;
        &lt;Comment&gt;B test&lt;/Comment&gt;
      &lt;/Segment&gt;
    &lt;/Retrieve&gt;
  &lt;/info&gt;
  </code></pre>
  
  <p>These two file must be equals.</p>
  
  <p>Thanks!</p>