Ever wanted to format your XML nicely? Use the SimpleDOM class.

Usage is like so:

span class="st0">"SimpleDOM.php";

$xml = "<foo><bar>car</bar></foo>"

Produces:

<?xml version="1.0"?>
<foo>
  <bar>car</bar>
</foo>