title: Convert Xml Diffgrams to xpath?
body: <p>I am using the Microsoft Xml Diff Path API and it is generating a diffgram like this</p>
  
  <pre><code>&lt;xd:node match="2"&gt;
      &lt;xd:node match="1"&gt;
          &lt;xd:node match="1"&gt;
              &lt;xd:node match="2"&gt;
                  &lt;xd:change match="@randomAttribue"&gt;MATCH VALUE&lt;/xd:change&gt;
                  &lt;xd:node match="1"&gt;
                      &lt;xd:change match="1"&gt;NEW TEXT&lt;/xd:change&gt;
                  &lt;/xd:node&gt;
  </code></pre>
  
  <p>My question is how do I convert the various "match attributes" to a single flat Xpath position query that i can apply to the original document to get the actual changed node?</p>