Skip to content

Instantly share code, notes, and snippets.

@RobSpectre
Created November 20, 2011 01:51
Show Gist options
  • Save RobSpectre/1379691 to your computer and use it in GitHub Desktop.
Save RobSpectre/1379691 to your computer and use it in GitHub Desktop.
SimpleXML Example
<?php
$xml = new SimpleXMLElement("<Response/>");
$reject = $xml->addChild("Accept");
$reject->addAttribute("Reason", "This buyer is not awesome.");
echo $xml->asXML();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment