I need to parse a huge XML that contains lots of job entries, like this
<?xml version="1.0" encoding="ISO-8859-1"?>
<items>
<item>
<title><![CDATA[...]]></title>
<description><![CDATA[...]]></description>
<link><![CDATA[...]]></link>
<city><![CDATA[...]]></city>
<state><![CDATA[...]]></state>
<position><![CDATA[...]]></position>
<company><![CDATA[...]]></company>
<category_id><![CDATA[...]]></category_id>
<job_id>...</job_id>
<salary><![CDATA[...]]></salary>
<term><![CDATA[...]]></term>
</item>
....
</items>
The server has enough memory to fully read that file but when if comes to parsing, it fails with "memory exhausted" error. Does PHP provide ways that would allow to split that file nicely or parse it in parts or anything that can be of help here. Thanks for any ideas and suggestions!