CMS News, Reviews and Resources

Content Management Matters ™

Home > Archives > Tips & Tricks
 Looking for a job? Check out the CMSWire Job Board.



Geeking: How to Parse XML Better with PHP 5

By Brice Dunwoodie
Mar 2. 2007
Filed Under:

PHPWe 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.

SPONSORSHIP

CMSWire speaks to a specific audience of professionals and opinion makers focused on content management, publishing and collaboration.
Advertise here.

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.

Was this article useful?

Comments

Add a Comment

Email:
Web Site:
Comments:
Security Code:
  Remember me?
  


Advertise on CMSWire





Add to Technorati Favorites