I keep getting the message "unable to load XML file" no matter how I try different approaches to make the code work.
Anyone could give me a little help ?
Thanks in advance
03-20-2014, 10:15 AM
Your url seems to be a JSON and not a XML file.
04-09-2014, 03:50 AM
The problem is that your URL that you are loading is JSON file not xml file. So to load JSON file use something like:
$variable = file_get_contents('http://example.com/data.json');
$decoded = json_decode($variable);