Jump to content

[SOLVED] simplexml_load_file with a node named "list"


seriesoftubes

Recommended Posts

I am trying to parse an xml file: http://api.smart.fm/lists/matching/solar

 

and I'm not having any luck with this particular line:

 

foreach ($xml->list as $x)

{

 

}

 

And I've decided that the problem must be related to the fact that the node I need is named "list" which is also a PHP language construct. Can anyone confirm if I'm either on the right track or have no clue what I'm talking about?

 

Thank you.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.