Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 4th, 2012  |  syntax: None  |  size: 0.56 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. PHP: how to parse a huge xml file
  2. <?xml version="1.0" encoding="ISO-8859-1"?>
  3. <items>
  4.   <item>
  5.     <title><![CDATA[...]]></title>
  6.     <description><![CDATA[...]]></description>
  7.     <link><![CDATA[...]]></link>
  8.     <city><![CDATA[...]]></city>
  9.     <state><![CDATA[...]]></state>
  10.     <position><![CDATA[...]]></position>
  11.     <company><![CDATA[...]]></company>
  12.     <category_id><![CDATA[...]]></category_id>
  13.     <job_id>...</job_id>
  14.     <salary><![CDATA[...]]></salary>
  15.     <term><![CDATA[...]]></term>
  16.   </item>
  17.  
  18.   ....
  19.  
  20. </items>
  21.        
  22. ini_set("memory_limit", "128M")