javascript push the XML attributes in to an array
<p>I have XML file in the following way:</p>

<pre><code>&lt;root&gt;
 &lt;player&gt;
  &lt;roster&gt;
   &lt;player code="AUQ" position="Guard" countrycode="SRB"/&gt;
   &lt;player code="AQX" position="Forward" countrycode="GER"/&gt;
  &lt;/roster&gt;
 &lt;/player&gt;

 &lt;player&gt;
  &lt;roster&gt;
   &lt;player code="AUQ1" position="Guard" countrycode="SRB"/&gt;
   &lt;player code="AQX1" position="Forward" countrycode="GER"/&gt;
  &lt;/roster&gt;
 &lt;/player&gt;
&lt;/root&gt;
</code></pre>

<p>How do i push all the 'player' attribute values in to an associative array(name/value pairs) using javascript.</p>
