Reputation: 588
After initiating a new SimpleXml object:
$xml = new SimpleXML($xmlStr);
PHP errors out:
Fatal error: Class 'SimpleXML' not found
PHP info reads:
What could possibly be going wrong?
Upvotes: 2
Views: 5939
Reputation: 27119
To parse XML, use:
simplexml_load_string($string);
Or:
simplexml_load_file($filename);
These will each return SimpleXMLElement objects, as noted by others.
Upvotes: 2