title: How to parse XML output into single line
body: <p>I am trying to setup a PHP code to use a XML API to contact Kunaki to get shipping prices. I try to parse the response via this code but get no output.</p>
  
  <pre class="lang-php prettyprint-override"><code>&lt;?php
  $context  = stream_context_create(array('http' =&gt; array('header' =&gt; 'Accept: application/xml')));
  $url = 'http://kunaki.com/HTTPService.ASP?RequestType=ShippingOptions&amp;State_Province=NY&amp;PostalCode=11204&amp;Country=United+States&amp;ProductId=PX0012345&amp;Quantity=1&amp;ProductId=PX04444444&amp;Quantity=1&amp;ResponseType=xml ';
  
  $xml = file_get_contents($url, false, $context);
  $xml = simplexml_load_string($xml);
  echo $xml-&gt;Description[3]-&gt;Description;
  //print_r($xml); Debug line to make sure xml is outputing
  ?&gt;
  </code></pre>
  
  <p>I am not sure what I am doing wrong, any help would be appreciated to figure out how to output this.</p>
  
  <p>This is the output I get in XML</p>
  
  <pre class="lang-php prettyprint-override"><code>SimpleXMLElement Object (
      [ErrorCode] =&gt; 0
      [ErrorText] =&gt; success
      [Option] =&gt; Array (
          [0] =&gt; SimpleXMLElement Object (
              [Description] =&gt; USPS First Class Mail
              [DeliveryTime] =&gt; 2-5 business days
              [Price] =&gt; 0.66
          )
          [1] =&gt; SimpleXMLElement Object (
              [Description] =&gt; UPS Ground
              [DeliveryTime] =&gt; 1-5 business days
              [Price] =&gt; 17.17
          )
          [2] =&gt; SimpleXMLElement Object (
              [Description] =&gt; UPS 2nd Day Air
              [DeliveryTime] =&gt; 2 business days
              [Price] =&gt; 30.42
          )
          [3] =&gt; SimpleXMLElement Object (
              [Description] =&gt; UPS Next Day Air Saver
              [DeliveryTime] =&gt; 1 business day
              [Price] =&gt; 50.17
          )
      )
  )
  </code></pre>