title: Basic simpleXML working example?
body: <p>It looks like there are many problems with simpleXML in PHP. I'm running the latest version of php on Windows and I just can not get the basic examples of simpleXML to work as in the documentation.   </p>
  
  <p>My xml file is:  </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  &lt;programme&gt; 
    &lt;title&gt;Billy Bushwaka&lt;/title&gt; 
    &lt;episodeNumber&gt;2&lt;/episodeNumber&gt; 
    &lt;description&gt;Billy Bushwaka entertains&lt;/description&gt; 
    &lt;url&gt;play.swf&lt;/url&gt; 
  &lt;/programme&gt; 
  </code></pre>
  
  <p>My PHP program is:  </p>
  
  <pre><code>&lt;?php
  $xml = simplexml_load_file("local.xml");
  
  $result = $xml-&gt;xpath("//programme");
  echo "Title: " . $result . "&lt;/br&gt;";
  ?&gt;
  </code></pre>
  
  <p>All I get is the following: </p>
  
  <p>Title: Array</p>
  
  <p>How can I get "Title: Billy Bushwaka"?</p>
  
  <p>There are no repeats of XML data so I do not want to use arrays.</p>