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

[eluser]pickupman[/eluser]
Here's a SimpleXML library I use to make this easier for you. Unzip it to your /application/libraries folder
Code:
//Load SimpleXML library
$this->load->library('simplexml');
$xmlData = $this->simplexml->xml_parse($xml); //where $xml is your xml to parse

var_dump($xmlData); //You should see an multi dimensional array for each node


Just loop through the appropriate arrays to access the data you need.


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