Page 1 of 1

PHP4 equivalent of SimpleXML?

Posted: Mon May 25, 2009 12:13 pm
by kimberly
Hi, me again :banghead:

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 basically just need to get the elements out of this XML string.

I'd really appreciate any help.

regards,
Kimberly