title: Show XML Data using PHP
body: <p>I have data pagenumber.xml data like this</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;Search&gt;
  &lt;Pages Count="40"&gt;
  &lt;Page Number="1"&gt;Data in page1&lt;/Page&gt;
  &lt;Page Number="2"&gt;Data in page2&lt;/Page&gt;
  &lt;Page Number="3"&gt;Data in page3&lt;/Page&gt;
  &lt;Page Number="4"&gt;Data in page4&lt;/Page&gt;
  &lt;Page Number="5"&gt;Data in page5&lt;/Page&gt;
  &lt;/Pages&gt;
  &lt;/Search&gt;
  </code></pre>
  
  <p>How to show data in my xml file using PHP
  it's my code to show xml data, but still error in show page data</p>
  
  <pre><code>&lt;?php
  $dataxml = simplexml_load_file('pagenumber.xml');
  
  foreach($dataxml-&gt;Pages as $buku)
  {
     echo "Pages count: ".$buku['Count']."&lt;br&gt;";
     echo "Data in page 1: --&gt; i don't know how to show the data
     echo "Data in page 2: --&gt; i don't know how to show the data
     echo "Data in page 3: --&gt; i don't know how to show the data
     echo "Data in page 4: --&gt; i don't know how to show the data
     echo "Data in page 5: --&gt; i don't know how to show the data
  }
  ?&gt;
  </code></pre>
  
  <p>Many thanks ;)</p>