Note that there are some explanatory texts on larger screens.

plurals
  1. POComparing XML by nodes names and attributes names in C#
    primarykey
    data
    text
    <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>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload