Avatar of n00b0101
n00b0101
 asked on

SimpleXML equivalent?

I've been having a lot of problems with the code snippet below.  In a previous question, someone suggested that I use simplexml.  Can anyone tell me what that would be given the code below:


$results = file_get_contents($q."&requiredfields=stream_$stream".$required_fields)
$theDocument = domxml_open_mem($results);
$xPath = $theDocument->path_new_context();
$total[$stream] = $xPath->xpath_eval('//M/text()');

Open in new window

PHP

Avatar of undefined
Last Comment
eft0

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
eft0

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck