title: How to get the value element [@attributes]
body: <pre><code>     SimpleXMLElement Object
   (
          [@attributes] =&gt; Array
              (
                  [projectTypeID] =&gt; 10
                  [genContentID] =&gt; 000001
                  [language] =&gt; en
                  [title] =&gt; Travel to developing countries
                  [subContent] =&gt; default
              )
  
          [versionInfo] =&gt; SimpleXMLElement Object
              (
                  [@attributes] =&gt; Array
                      (
                          [reviewDate] =&gt; 2/20/2012
                          [reviewedBy] =&gt; Harvey Simon
                      )
  
              )
       ) 
  </code></pre>
  
  <p>How can I get the value of <code>@attributes</code> element?</p>
  
  <pre><code>   [title] =&gt; Travel to developing countries
  
     [reviewDate] =&gt; 2/20/2012
  </code></pre>
  
  <p>this is my code</p>
  
  <pre><code>  &lt;?php   $xml = simplexml_load_file('000001.xml','SimpleXMLElement', LIBXML_NOCDATA);
  
  
            echo "&lt;pre&gt;";
             print_r($xml);
            echo "&lt;/pre&gt;";
  
               echo $xml-&gt;{'@attributes'}['title'];  // not working
          echo "&lt;br/&gt;";
         echo $xml-&gt;versionInfo-&gt;{'@attributes'}['reviewDate'];   // not working
  
     ?&gt;
  </code></pre>