title: simplexml loop, loop count good data bad
body: <p>Trying my first  simplexml loop</p>
  
  <p>I have got to this:</p>
  
  <pre><code>foreach ($xml-&gt;GetCapabilityResponse-&gt;Srvs-&gt;Srv as $rows)
  {
  echo $xml-&gt;GetCapabilityResponse-&gt;Srvs-&gt;Srv-&gt;GlobalProductCode . " ";
  echo  $xml-&gt;GetCapabilityResponse-&gt;Srvs-&gt;Srv-&gt;MrkSrv-&gt;LocalProductCode . " " ; 
  echo  $xml-&gt;GetCapabilityResponse-&gt;Srvs-&gt;Srv-&gt;MrkSrv-&gt;ProductShortName . "&lt;br&gt;";
  }
  </code></pre>
  
  <p>It returns the correct amount of rows '6' but all 6 are the same data from the first row, how do I adjust to show the 6 different rows own data, it's not limited to 6, could be 12 or more etc</p>
  
  <p>thanks
  Mazz</p>