title: How to parse linkedin xml so I get single fields values
body: <p>I have this code:</p>
  
  <pre><code>$xml_response = $linkedin-&gt;getProfile("~:(id,firstName,lastName,email-address)");
  </code></pre>
  
  <p>which generates the following result xml:</p>
  
  <pre><code>&lt;person&gt;
  &lt;id&gt;c3g9fdgdbP9-&lt;/id&gt;
  &lt;first-name&gt;Shoen&lt;/first-name&gt;
  &lt;last-name&gt;Vergue&lt;/last-name&gt;
  &lt;email-address&gt;manager@glob....beg.com&lt;/email-address&gt;
  &lt;/person&gt;
  </code></pre>
  
  <p>How to get for example email value?</p>
  
  <p>I tried this:</p>
  
  <pre><code>$mail=$xml_response['email-address'];
  </code></pre>
  
  <p>but it returns nothing</p>
  
  <p>Thank you in advance</p>