SimpleXMLElement file does not load xmlString

Chaolis

New Member
I am trying to work on an XML Based problem. So far, it's proving to be a bummer for some reason. My code is only two lines and for some reason nothing is loading in.The code:\[code\]$xmlString = file_get_contents('file.xml');$xmlObject = simplexml_load_string($xmlString); // also in the above line I have tried// 1. new SimpleXMLElement('file.xml') // 2. simplexml_load_file('file.xml')\[/code\]The functions do not load, and this I can tell by var_dumping $xmlObject, which returns boolean false.file_get_contents does load the string $xmlString and var_dumping it returns the string, so location of the file path is not an issue here.Anybody know what's happening here?Thanks
 
Back
Top