PHP4 equivalent of SimpleXML?
Posted: Mon May 25, 2009 12:13 pm
Hi, me again
Can anyone plese tell me the PHP4 equivalent of the code below:
$result is my string returned from a server which contains XML that I need to parse.
I basically just need to get the elements out of this XML string.
I'd really appreciate any help.
regards,
Kimberly
Can anyone plese tell me the PHP4 equivalent of the code below:
$result is my string returned from a server which contains XML that I need to parse.
Code: Select all
$xml = simplexml_load_string($result);
$xml = new SimpleXMLElement($result);
print "ErrorMessage ";
print ($xml->TxResponse[0]->ErrorMsg);I'd really appreciate any help.
regards,
Kimberly