seriesoftubes Posted April 17, 2009 Share Posted April 17, 2009 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. Link to comment https://forums.phpfreaks.com/topic/154564-solved-simplexml_load_file-with-a-node-named-list/ Share on other sites More sharing options...
seriesoftubes Posted April 17, 2009 Author Share Posted April 17, 2009 It was the lack of a .xml extension if anybody is interested. Now solved. Link to comment https://forums.phpfreaks.com/topic/154564-solved-simplexml_load_file-with-a-node-named-list/#findComment-812807 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.