<?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>Sun, 19 May 2013 01:13:42 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Jeremy Johnstone's Blog: PHP parser for OS X plist XML files]]></title>
      <guid>http://www.phpdeveloper.org/news/11291</guid>
      <link>http://www.phpdeveloper.org/news/11291</link>
      <description><![CDATA[<p>
<i>Jeremy Johnstone</i> has come up with a <a href="http://www.jeremyjohnstone.com/blog/archives/2008/10/26/php-parser-for-os-x-plist-xml-files/">simple plist xml parser</a>. The plist format is what iTunes (and some other application) uses for its library files.
</p>
<blockquote>
Normally SimpleXML is enough to handle most <a href="http://www.jeremyjohnstone.com/blog/archives/tag/xml/">XML</a> <a href="http://www.jeremyjohnstone.com/blog/archives/tag/parsing/">parsing</a> needs, but the <a href="http://www.jeremyjohnstone.com/blog/archives/tag/plist/">plist</a> <A href="http://www.jeremyjohnstone.com/blog/archives/tag/xml/">XML</a> format is just broken enough to make <a href="http://www.jeremyjohnstone.com/blog/archives/tag/parsing/">parsing</a> it with SimpleXML virtually impossible. Since I hadn't played with XMLReader much, I thought it would be a good chance to give it a spin. For the anxious types, the code is available on <a href="http://github.com/jsjohnst/php_class_lib/tree/master">github in my php_class_lib project</a>, so dig right in.
</blockquote>
<p>
His <a href="http://www.jeremyjohnstone.com/blog/archives/2008/10/26/php-parser-for-os-x-plist-xml-files/">parser</a> takes in the name of the file to fetch and a parser() method is called to do the actual work. The contents of the file are returned as an array (he includes a print_r() of that output too).
</p>]]></description>
      <pubDate>Mon, 27 Oct 2008 09:35:56 -0500</pubDate>
    </item>
  </channel>
</rss>
