title: php parser xml with curl, display only tags that i want
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/188414/best-xml-parser-for-php">Best XML Parser for PHP</a>  </p>
  </blockquote>
  
  
  
  <p>I have a Php/ curl file </p>
  
  <pre><code>&lt;?php
  echo "Conversion Stats&lt;br /&gt;"; 
  
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_HEADER, 0);
  curl_setopt($ch, CURLOPT_VERBOSE, 0);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible;)");
  curl_setopt($ch, CURLOPT_POST, true);
  curl_setopt($ch, CURLOPT_URL,'http://login.leadkitchen.com/affiliates/api/4/reports.asmx/Conversions' );
  $post_array = array(
         'affiliate_id' =&gt; '123',
      'api_key' =&gt; 'abc',
      'start_date' =&gt; '10/8/2012',
      'end_date' =&gt; '10/11/2012',
      'offer_id' =&gt; '123',
      'start_at_row' =&gt; '1',
      'row_limit' =&gt; '0',
      'sub_affiliate' =&gt; 'email'
  );
  
  //url-ify the data
  foreach($post_array as $key=&gt;$value) 
  { 
      $post_array_string .= $key.'='.$value.'&amp;'; 
  }
  $post_array_string = rtrim($post_array_string,'&amp;');
  //set the url, number of POST vars, POST data
  curl_setopt($ch,CURLOPT_POST,count($post_array ));
  curl_setopt($ch,CURLOPT_POSTFIELDS,$post_array_string);
  $response = curl_exec($ch);
  
  
  
  print "$response";
  
  
  ?&gt;
  </code></pre>
  
  <p>And possible XML response for this</p>
  
  <pre><code>&lt;conversion_response&gt;
  &lt;success&gt;true&lt;/success&gt;
  &lt;row_count&gt;1&lt;/row_count&gt;
  &lt;summary&gt;
  &lt;price&gt;22.26555000000000&lt;/price&gt;
  &lt;currency_symbol&gt;$&lt;/currency_symbol&gt;
  &lt;/summary&gt;
  &lt;conversions&gt;
  &lt;conversion&gt;
  &lt;conversion_id&gt;221D4853&lt;/conversion_id&gt;
  &lt;conversion_date&gt;2011-06-24T11:51:05.117&lt;/conversion_date&gt;
  &lt;offer_id&gt;100&lt;/offer_id&gt;
  &lt;offer_name&gt;$100 Bendy's Gift Card + Free Frosti&lt;/offer_name&gt;
  &lt;campaign_id&gt;1781&lt;/campaign_id&gt;
  &lt;subid_1&gt;111770&lt;/subid_1&gt;
  &lt;subid_2/&gt;
  &lt;subid_3/&gt;
  &lt;subid_4/&gt;
  &lt;subid_5/&gt;
  &lt;price&gt;15.0000&lt;/price&gt;
  &lt;disposition&gt;Voicemail matches name&lt;/disposition&gt;
  &lt;test&gt;false&lt;/test&gt;
  &lt;currency_symbol&gt;€&lt;/currency_symbol&gt;
  &lt;/conversion&gt;
  &lt;/conversions&gt;
  &lt;/conversion_response&gt;
  </code></pre>
  
  <p>I actually need to display only conversion_id and price in the page. I don't want other results to be displayed on the page. How do I do this? </p>