title: Trouble figuring out how parsed xml is stored - simpleXML
body: <p>Let's say my <code>XML</code> is like this:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;lists&gt;
      &lt;list
          path="."&gt;
          &lt;entry
              kind="dir"&gt;
              &lt;name&gt;Assignment1.1&lt;/name&gt;
              &lt;commit
                  revision="1668"&gt;
                  &lt;author&gt;netid&lt;/author&gt;
                  &lt;date&gt;2011-09-07T03:03:58.367692Z&lt;/date&gt;
              &lt;/commit&gt;
          &lt;/entry&gt;
          &lt;entry
              kind="file"&gt;
              &lt;name&gt;Assignment1.1/.classpath&lt;/name&gt;
              &lt;size&gt;397&lt;/size&gt;
              &lt;commit
                  revision="1558"&gt;
                  &lt;author&gt;netid&lt;/author&gt;
                  &lt;date&gt;2011-09-06T17:00:52.998920Z&lt;/date&gt;
              &lt;/commit&gt;
        .
        .
        .
  
      &lt;/list&gt;
  &lt;/lists&gt;
  </code></pre>
  
  <p>And I store it in a <code>SimpleXML</code> object using</p>
  
  <p><code>$xml_list = simplexml_load_file(dirname(__FILE__).'/svn_list.xml');</code></p>
  
  <p>How would I access for example, the revision variable containing 1558?</p>
  
  <p>I can't seem to figure it out using a combination of <code>echo</code> and <code>print_r</code>. </p>