View Full Version : unable to parse an xml hosted on a separate server

04-13-2009, 01:52 AM
Hello to all the experts out there,

I can't seem to parse my xml file. I've my software export a xml file at a separate server and when i try to parse it it keeps giving me this error.

Warning: simplexml_load_file( [function.simplexml-load-file]: failed to open stream: Connection refused in /home/taggesem/public_html/parse.php on line 2

Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "" in /home/taggesem/public_html/parse.php on line 2

Fatal error: Call to a member function attributes() on a non-object in /home/taggesem/public_html/parse.php on line 3

I'm using PHP to parse it and this works fine from my localhost. I've my the file I used to parse hosted at godaddy and the xml output is at

Any help will be appreciated.

04-13-2009, 01:52 AM
heres the script that I'm using,...

$xml = simplexml_load_file('');
$var = $xml->Entry[0]->attributes();
$artist = $var->Artist;
$title = $var->Title;
echo "Artist : $artist<br />";
echo "Title : $title<br />";