Output array of XML to plain XML
<p>I have a script which collects 4 URL's (XML) using CURL and returns an array with 4 items each ocntaining the results of the URL's.</p>

<p>Here is the array:</p>

<pre><code>array(3) {
  [0]=&gt;
  string(41772) "&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;statuses type="array"&gt;
&lt;status&gt;
  &lt;created_at&gt;Tue Mar 30 20:58:53 +0000 2010&lt;/created_at&gt;
  &lt;id&gt;11328253513&lt;/id&gt;
  &lt;text&gt;...&lt;/text&gt;
  &lt;source...&lt;/source&gt;
  &lt;truncated&gt;false&lt;/truncated&gt;
  &lt;in_reply_to_status_id&gt;&lt;/in_reply_to_status_id&gt;
  &lt;in_reply_to_user_id&gt;&lt;/in_reply_to_user_id&gt;
  &lt;favorited&gt;true&lt;/favorited&gt;
  &lt;in_reply_to_screen_name&gt;&lt;/in_reply_to_screen_name&gt;
  &lt;user&gt;
    &lt;id&gt;1...&lt;/id&gt;
    &lt;name&gt;....&lt;/name&gt;
&lt;/status&gt;
&lt;/statuses&gt;
"
  [1]=&gt;
  string(20630) "&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;statuses type="array"&gt;
&lt;status&gt;
  &lt;created_at&gt;Sun Feb 28 14:12:30 +0000 2010&lt;/created_at&gt;
  &lt;id&gt;...&lt;/id&gt;
  &lt;text&gt;...&lt;/text&gt;
  &lt;source&gt;&amp;lt;a

etc...
</code></pre>

<p>How can I easily output the XML from the array? I also need to combine the 3 XML structures into one where <code>&lt;statuses&gt;</code> begins and ends in between each array.</p>
