News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Jeremy Johnstone's Blog:
PHP parser for OS X plist XML files
October 27, 2008 @ 09:35:56

Jeremy Johnstone has come up with a simple plist xml parser. The plist format is what iTunes (and some other application) uses for its library files.

Normally SimpleXML is enough to handle most XML parsing needs, but the plist XML format is just broken enough to make parsing 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 github in my php_class_lib project, so dig right in.

His parser 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).

1 comment voice your opinion now!
osx parse xmlreader plist xml file tutorial github


blog comments powered by Disqus

Similar Posts

Software Development Video & Tutorials: PHP and Couchbase

Freek Lijten's Blog: OAuth, a practical introduction with examples using the Twitter API

Stefan Mischook's Blog: Google Wave & Zend Framework Webinar

Gonzalo Ayuso's Blog: Real time monitoring PHP applications with websockets and node.js

Pádraic Brady's Blog:Doing that thing called PEAR - Packaging Source Code for PEAR Distribution


Community Events

Don't see your event here?
Let us know!


library framework php7 series voicesoftheelephpant community introduction api example version release extension opinion install podcast laravel language unittest interview xdebug

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework