<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sat, 25 May 2013 21:36:50 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Christian Weiske's Blog: Importing huge XML files using PHP5 - efficiently and conveniently]]></title>
      <guid>http://www.phpdeveloper.org/news/10889</guid>
      <link>http://www.phpdeveloper.org/news/10889</link>
      <description><![CDATA[<p>
<i>Christian Weiske</i> has a <a href="http://cweiske.de/tagebuch/Importing%20huge%20XML%20files%20using%20PHP5%20-%20efficiently%20and%20conveniently.htm">quick tip</a> on how to get larger XML files to pull into PHP5 and be usable:
</p>
<blockquote>
At work I had the task to implement the synchronization between an online shop and a commodity management system. Data exchange format was XML - one big XML file for all of the products (some thousands with dozens of attributes). Big question: How do I import the file in a way that is most convenient for me as a programmer - and without exceeding the machine's RAM when loading a 1 GiB file?
</blockquote>
<p>
The newer alternatives both use the same technology (DOM and SimpleXML - with DOM behind it) so he goes more "low tech" than that and opts for the XMLReader extension to pull in the large amounts of data. Available in PHP5, the XMLReader extension, which he combines with an Iterator from the SPL to makes for a simple, quick little parser.
</p>]]></description>
      <pubDate>Mon, 25 Aug 2008 09:34:38 -0500</pubDate>
    </item>
  </channel>
</rss>
