I am getting the following returned from an api I am working with.. However using SIMPLEXML I am unable to access the values:
<?xml version="1.0" encoding="utf-16"?>
<Response Version="1.0">
<DateTime>2/13/2013 10:37:24 PM</DateTime>
<Contact_ID>151-233-DD</Contact_ID>
<Quote_ID>ojc332-ewied-23e3ed</Quote_ID>
<Status>Failure</Status>
<Reason>Incorrect Contact ID</Reason>
</Response>
I am setting this up with:
$variable = new SimpleXMLElement($results);
SIMPLEXML is giving me the following instead of what I expect to be $variable->DateTime:
SimpleXMLElement Object ( [0] => 2/13/2013 10:37:24 PM 151-233-DD 0jc332-ewied-23e3ed Failure Incorrect Contract ID )
Any help is much appreciated