title: Get artist country from musicbrainz xml (with php)
body: <p>So this is an example xml that musicbrainz returns (for artist "Absynthe Minded" and song "Moodswing Baby"):</p>
  
  <pre><code>&lt;metadata xmlns="http://musicbrainz.org/ns/mmd-2.0#" xmlns:ext="http://musicbrainz.org/ns/ext#-2.0"&gt;
     &lt;recording-list offset="0" count="3"&gt;
        &lt;recording ext:score="100" id="580d3e6f-6b2a-4f2c-bb06-a73486de50b8"&gt;
           &lt;title&gt;Moodswing Baby&lt;/title&gt;
           &lt;length&gt;230706&lt;/length&gt;
           &lt;artist-credit&gt;...&lt;/artist-credit&gt;
           &lt;release-list&gt;
              &lt;release id="f183e8a3-5326-44c9-8ab3-00a2dbb74caf"&gt;
                 &lt;title&gt;Absynthe Minded&lt;/title&gt;
                 &lt;status&gt;Official&lt;/status&gt;
                 &lt;release-group type="Album"/&gt;
                 &lt;date&gt;2009&lt;/date&gt;
                 &lt;country&gt;BE&lt;/country&gt;
                 &lt;medium-list&gt;...&lt;/medium-list&gt;
              &lt;/release&gt;
              &lt;release id="fccd0f03-30e5-44ac-8825-a61ad8b25442"&gt;...&lt;/release&gt;
              &lt;release id="b3873ea0-0ed3-48f1-9703-4f5302460d0e"&gt;...&lt;/release&gt;
              &lt;release id="b68fb38c-5a5a-4d24-bd41-2c50945cef39"&gt;...&lt;/release&gt;
           &lt;/release-list&gt;
           &lt;puid-list&gt;...&lt;/puid-list&gt;
           &lt;isrc-list&gt;...&lt;/isrc-list&gt;
        &lt;/recording&gt;
        &lt;recording ext:score="100" id="359c27e3-5153-445e-aa66-71d8152d19e4"&gt;...&lt;/recording&gt;
        &lt;recording ext:score="31" id="e9e4628a-61ff-4dd7-8fbb-a8d655d29a5a"&gt;...&lt;/recording&gt;
     &lt;/recording-list&gt;
  &lt;/metadata&gt;
  </code></pre>
  
  <p>I'm trying to print that country "BE" on my website next to the artists name with this at the moment:</p>
  
  <pre><code>&lt;?php
     $xml = simplexml_load_file("http://www.musicbrainz.org/ws/2/recording?query=moodswing%20baby%20AND%20artist:absynthe%20minded");
     $info = $xml-&gt;recording-list-&gt;recording[1]-&gt;release-list-&gt;release[1]-&gt;country;
     echo $info;
  ?&gt;
  </code></pre>
  
  <p>I use the same method to retrieve song and artist infos from last.fm's database (also xml) but it doesn't seem to work with this (T_OBJECT_OPERATOR, expecting '(' error). I've tried to remove the [1] but no results. </p>
  
  <p>Any ideas how I can retrieve and print that country? Thank you!</p>