title: how to parse google contact feed (xml or json) using php
body: <p>I'm trying to parse the google contact feed using php, below is the example of the xml feed that i get from google</p>
  
  <pre><code>&lt;entry&gt;
          &lt;id&gt;http://www.google.com/m8/feeds/contacts/sample%40gmail.com/base/63a9d180dd7f506&lt;/id&gt;
          &lt;updated&gt;2010-11-23T10:00:40.848Z&lt;/updated&gt;
          &lt;category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/contact/2008#contact'/&gt;
          &lt;title type='text'&gt;@@@@@@this is the sample title i need to get@@@@@&lt;/title&gt;
          &lt;link rel='http://schemas.google.com/contacts/2008/rel#edit-photo' type='image/*' href='@@@@@this is the link i need@@@@@'/&gt;
          &lt;link rel='self' type='application/atom+xml' href='https://www.google.com/m8/feeds/contacts/sample40gmail.com/full/680dd7f506'/&gt;
          &lt;link rel='edit' type='application/atom+xml' href='https://www.google.com/m8/feeds/contacts/sample%40gmail.com/full/0dd7f506/12940848000'/&gt;
          &lt;gd:email rel='http://schemas.google.com/g/2005#other' address='@@@@@@@@here is the address that i need to get@@@@@@@' primary='true'/&gt;
      &lt;/entry&gt;
  </code></pre>
  
  <p>how to parse out those information that i have marked using php?</p>