We help IT Professionals succeed at work.

SimpleXML equivalent?

n00b0101
n00b0101 asked
on
471 Views
Last Modified: 2012-08-13
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

Comment
Watch Question

Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.