Zeradin Posted August 21, 2008 Share Posted August 21, 2008 I'm working getting edits to work I get these errors: Warning: simplexml_load_file() [function.simplexml-load-file]: reviews/xml/98.xml:11: parser error : xmlParseEntityRef: no name in /home/hypboard/public_html/thehyp/reviews/album.php on line 4 Warning: simplexml_load_file() [function.simplexml-load-file]: <info>When The Tiger & Duke was released, I was blown away by the musicianship a in /home/hypboard/public_html/thehyp/reviews/album.php on line 4 Warning: simplexml_load_file() [function.simplexml-load-file]: ^ in /home/hypboard/public_html/thehyp/reviews/album.php on line 4 Unable to load XML file! here's the line in question: <?php $id = $_GET['id']; $file = "reviews/xml/".$id.".xml"; $xml = simplexml_load_file($file) or die ("Unable to load XML file!"); what could be the cause of this? also i should note that reviews/98.xml exists and seems to be properly formatted Link to comment https://forums.phpfreaks.com/topic/120722-unable-to-load-xml-file/ Share on other sites More sharing options...
Zeradin Posted August 21, 2008 Author Share Posted August 21, 2008 ok problem was there was an & in the info section how can i fix that problem? do some sort of replace? should i do it when i read out or when i write in? thanks Link to comment https://forums.phpfreaks.com/topic/120722-unable-to-load-xml-file/#findComment-622086 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.