title: TouchXML parsing XML attributes
body: <p>How do I use touchXML to parse this XML? I want to store all the attributes as key/value pairs in a dictionary.</p>
  
  
  
  <pre><code>&lt;Player PlayerName="Padraig HARRINGTON" CurrentPosition="1" CurrentRank="1"
      Country="IRL" NumberOfHolesPlayed="18" ParRelativeScore="+3"&gt;
      &lt;RoundScore RoundNumber="1" Score="74" /&gt;
      &lt;RoundScore RoundNumber="2" Score="68" /&gt;
      &lt;RoundScore RoundNumber="3" Score="72" /&gt;
      &lt;RoundScore RoundNumber="4" Score="69" /&gt;
  &lt;/Player&gt;
  &lt;Player PlayerName="Ian POULTER" CurrentPosition="2" CurrentRank="2" Country="ENG" 
      NumberOfHolesPlayed="18" ParRelativeScore="+7"&gt;
      &lt;RoundScore RoundNumber="1" Score="72" /&gt;
      &lt;RoundScore RoundNumber="2" Score="71" /&gt;
      &lt;RoundScore RoundNumber="3" Score="75" /&gt;
      &lt;RoundScore RoundNumber="4" Score="69" /&gt;
  &lt;/Player&gt;
  &lt;Player PlayerName="Henrik STENSON" CurrentPosition="3" CurrentRank="T3"           Country="SWE" 
      NumberOfHolesPlayed="18" ParRelativeScore="+9"&gt;
      &lt;RoundScore RoundNumber="1" Score="76" /&gt;
      &lt;RoundScore RoundNumber="2" Score="72" /&gt;
      &lt;RoundScore RoundNumber="3" Score="70" /&gt;
      &lt;RoundScore RoundNumber="4" Score="71" /&gt;
  &lt;/Player&gt;
  </code></pre>
  
  <p>I have no problem is the XML is formatted like so:</p>
  
  <pre><code>&lt;Player&gt;
  &lt;Country&gt;UK&lt;/Country&gt;
  &lt;NumberOfHolesPlayed&gt;12&lt;/NumberOfHolesPlayed&gt;
  ...
  ...
  </code></pre>
  
  <p></p>
  
  <p>But I'm not sure what to do when dealing with attributes...</p>
  
  <p>How can you get attributes with touchXML? In particular if a node has a subnode that also has attributes.. </p>
  
  <p>As per the first example XML file. In the first XML example I managed to get the Player attributes but not the child nodes 'RoundScore' attributes.</p>
  
  <p>Would love a helping hand..</p>
  
  <p>Thanks,</p>
  
  <p>Dan</p>