title: show xml values with specific attribute
body: <p>I have that php parser, its work perfectly but I get with this only first image:</p>
  
  <pre><code>&lt;?php
  header("Content-Type: text/html;charset=UTF-8");
  $xml = simplexml_load_file("xmlf.xml") 
  or die("Error: Cannot create object");
  foreach($xml-&gt;children() as $cars){
  
  $code = "$cars-&gt;code";
  $category = "$cars-&gt;category_id";
  $brand = "$cars-&gt;brand";
  $name = "$cars-&gt;product_name";
  $img1 = $cars-&gt;image;
  
  echo $code;
  echo "^";
  echo $name;
  echo "^";
  echo $descc;
  echo "^";
  echo $category;
  echo "^";
  echo $weight;
  echo "^";
  echo $brand;
  echo "^";
  echo $img1;
  echo "\n";
  
  } ?&gt;
  </code></pre>
  
  <p>And here sample of xml file what I need to parse:</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xml&gt; 
   &lt;good&gt; 
  &lt;code&gt;CODE1&lt;/code&gt;
  &lt;product_name&gt;NAME&lt;/product_name&gt;
  &lt;brand&gt;&lt;/brand&gt;
  &lt;category_id&gt;725&lt;/category_id&gt; 
  &lt;category&gt;CAT&lt;/category&gt;
  &lt;price&gt;1.42&lt;/price&gt;
  &lt;quantity&gt;2&lt;/quantity&gt;
  &lt;image count="1"&gt;http://imagelink.jpg&lt;/image&gt; 
  &lt;image count="2"&gt;http://imagelink.jpg&lt;/image&gt; 
  &lt;image count="3"&gt;http://imagelink.jpg&lt;/image&gt; 
  &lt;image count="4"&gt;http://imagelink.jpg&lt;/image&gt; 
  &lt;image count="5"&gt;http://imagelink.jpg&lt;/image&gt; 
  &lt;/good&gt;
  
   &lt;good&gt; 
  &lt;code&gt;CODE2&lt;/code&gt;
  &lt;product_name&gt;NAME&lt;/product_name&gt;
  &lt;brand&gt;&lt;/brand&gt;
  &lt;category_id&gt;725&lt;/category_id&gt; 
  &lt;category&gt;CAT&lt;/category&gt;
  &lt;price&gt;1.42&lt;/price&gt;
  &lt;quantity&gt;2&lt;/quantity&gt;
  &lt;image count="1"&gt;http://imagelink.jpg&lt;/image&gt; 
  &lt;image count="2"&gt;http://imagelink.jpg&lt;/image&gt; 
  &lt;/good&gt;
  
  &lt;/xml&gt;
  </code></pre>
  
  <p>Please help me, what i need to change to parse all images in this xml? I spent around six hours found solution, but not luck still.</p>