title: XmlUnit and Child Nodes
body: <p>I am using xmlunit to compare two text files.  The control xml is:</p>
  
  <pre><code>&lt;books&gt;
      &lt;book&gt;
         &lt;name&gt;Angels &amp;amp; Demons&lt;/name&gt;
         &lt;isbn&gt;9971-5-0210-0&lt;/isbn&gt;
         &lt;author&gt;Dan Brown&lt;/author&gt;
         &lt;category&gt;&lt;/category&gt;
      &lt;/book&gt;
  &lt;/books&gt;
  </code></pre>
  
  <p>I am comparing this against another piece of xml that has the  and  elements swapped.</p>
  
  <pre><code>&lt;books&gt;
      &lt;book&gt;
          &lt;isbn&gt;9971-5-0210-0&lt;/isbn&gt;
          &lt;name&gt;Angels &amp;amp; Demons&lt;/name&gt;
          &lt;author&gt;Dan Brown&lt;/author&gt;
          &lt;category&gt;&lt;/category&gt;
      &lt;/book&gt;
  &lt;/books&gt;
  </code></pre>
  
  <p>The Diff object reports the following difference:</p>
  
  <pre><code>Expected sequence of child nodes '1' but was '3' - comparing &lt;name...&gt; at /books[1]/book[1]/name[1] to &lt;name...&gt; at /books[1]/book[1]/name[1]
  </code></pre>
  
  <p>If <code>&lt;name&gt;</code> is child node '1', wouldn't <code>&lt;isbn&gt;</code> be child node '2'?</p>