Welcome Guest, Not a member yet? Register   Sign In
URGENT parsing xml file using codeigniter?
#6

[eluser]pickupman[/eluser]
Please use the code button in your editor, to format it properly. Without seeing how you are calling that method, I do notice that you may be leaving off a \\ from your $xmlfile string.
Try
Code:
$filename = $fname . '.xml';
$xmlfile  = "C:\\Users\\beto\\Documents\\xml\\" . $filename; //Adding extra slashes
$result   = '';

if(file_exists($xmlfile)){
  $xmlRaw = file_get_contents($xmlfile);

  $this->load->library('simplexml');
  $xmlData = $this->simplexml->xml_parse($xmlRaw);
  
  //foreach loop
}else{
  $result .= 'File ' . $xmlfile . ' was not found';
}
return $result;


Messages In This Thread
URGENT parsing xml file using codeigniter? - by El Forum - 11-23-2010, 12:50 PM
URGENT parsing xml file using codeigniter? - by El Forum - 11-23-2010, 02:04 PM
URGENT parsing xml file using codeigniter? - by El Forum - 11-23-2010, 03:23 PM
URGENT parsing xml file using codeigniter? - by El Forum - 11-23-2010, 03:26 PM
URGENT parsing xml file using codeigniter? - by El Forum - 11-24-2010, 05:17 PM
URGENT parsing xml file using codeigniter? - by El Forum - 11-24-2010, 06:21 PM
URGENT parsing xml file using codeigniter? - by El Forum - 11-24-2010, 07:02 PM
URGENT parsing xml file using codeigniter? - by El Forum - 11-24-2010, 08:50 PM
URGENT parsing xml file using codeigniter? - by El Forum - 02-20-2014, 05:19 AM
URGENT parsing xml file using codeigniter? - by El Forum - 02-20-2014, 06:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB