- simplexml_load_string: documentation ( source)
- print_r: documentation ( source)
<?php
$xml= <<<EOT
<?xml version="1.0" encoding="utf-16"?><result errors="no"><information><ordersCreated><ReferenceId><OrderNumber>TRP-CCT5012598-1</OrderNumber><ShipToContactId>Contact1</ShipToContactId></ReferenceId></ordersCreated></information></result>
EOT;
simplexml_load_string($xml);
print_r($xml)
?>