title: Parse key/value pairs from XML
body: <p>I'm looking to parse some data from the iTunes Library XML file and for that I'd like to have an elegant solution in VBScript to parse the key/value pairs. This is the XML structure:</p>
  
  <pre><code>&lt;plist version="1.0"&gt;
      &lt;dict&gt;
          &lt;dict&gt;
              &lt;key&gt;1&lt;/key&gt;
              &lt;dict&gt;
                  &lt;key&gt;Location&lt;/key&gt;&lt;string&gt;"file1.mp3"&lt;/string&gt;
              &lt;/dict&gt;
              &lt;key&gt;2&lt;/key&gt;
              &lt;dict&gt;
                  &lt;key&gt;Location&lt;/key&gt;&lt;string&gt;"file2.mp3"&lt;/string&gt;
              &lt;/dict&gt;
          &lt;/dict&gt;
      &lt;/dict&gt;
  &lt;/plist&gt;
  </code></pre>
  
  <p>I've now listed only two key/value (<code>&lt;key&gt;/&lt;dict&gt;</code>) pairs but of course there are many.</p>
  
  <p>I'd like to parse this into some kind of dictionary object like so:</p>
  
  <pre><code>1 file1.mp3
  2 file2.mp3
  </code></pre>
  
  <p>I can think of some ways to achieve this, like involving the <code>NextSibling()</code> method, but that really seems too far-fetched to me.</p>
  
  <p>So what would be a more official/elegant solution to this problem? Thanks in advance!</p>