Feature

Geeking: How to Parse XML Better with PHP 5

Brice Dunwoodie avatar
By
SAVED
PHP
We don't always characterize IBM's written word as concise nor clear. However the output from their Developer Works group is another matter. These articles are consistently useful, to the point, and consumable. Their latest is part one of a three part series covering the notable XML-oriented enhancements native to PHP 5. It focuses on SimpleXML and the DOM. The article -- entitled "The 15-minute PHP-with-XML Starter" -- demonstrates how SimpleXML, in combination with the DOM, is the ideal choice for developers working with straightforward, predictable, and relatively small XML documents. PHP 5 has vastly improved the developer's ability to work with XML in PHP. SimpleXML is a relatively simple and very usable PHP 5 extension used to convert XML from strings to native PHP objects that can be processed with normal property selectors and list iterators. The extension requires PHP 5 and is enabled by default. In related PHP news, the latest PHP 5 release was unwrapped earlier this month. Version 5.2.1 is a significant stability and security enhancement of the 5.x branch, and the PHP team are strongly encouraging production users to apply the update.
About the Author
Brice Dunwoodie

Brice Dunwoodie is the founder and CEO of Simpler Media Group, publisher of CMSWire, Reworked and VKTR. With more than 25 years of enterprise software experience at the intersection of technology, business operations and executive-level strategy, Brice maintains a focus on clarity, evidence-based analysis, visionary thinking and practitioner relevance. His academic background spans California Polytechnic University and the University of Michigan with a focus on psychology, computer science and leadership practices. Connect with Brice Dunwoodie:

Featured Research