I\'m generating a ton of XML that is to be passed to an API as a post variable when a user click on a form button. I also want to be able to show the user the XML before han
Put this at your start:
ob_start();
And to get the buffer back:
$value = ob_get_contents(); ob_end_clean();
See http://us2.php.net/manual/en/ref.outcontrol.php and the individual functions for more information.