title: How do I get text inside the xml tag
body: <p>I got a xml document that looks like this:</p>
  
  <pre><code>&lt;recenttracks user="xxxxxx" page="1" perPage="200" totalPages="2" total="233"&gt;
  &lt;track&gt;
  &lt;artist mbid="160629ab-ec18-4931-8c95-02cb92d06186"&gt;Foreigner&lt;/artist&gt;
  &lt;name&gt;Long, Long Way From Home&lt;/name&gt;
  &lt;streamable&gt;1&lt;/streamable&gt;
  &lt;mbid&gt;1be3ee4b-98e7-4690-b872-ccabbccd09af&lt;/mbid&gt;
  &lt;album mbid="4e1cf1f8-2383-434d-9125-6c28028db9d0"&gt;No End In Sight&lt;/album&gt;
  &lt;/track&gt;
  </code></pre>
  
  <p>Now I need to get to the totalPages property inside  now I know how to get the information between two tags for instance the name tag like this: $track->name but got no clue how to get the information inside a tag anyone?</p>