O'Reilly logo

PHP 5 CMS Framework Development by Martin Brampton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exploring PHP—XML handling

From the outset, we committed ourselves to PHP 5. Extension handling requires that XML be processed, as the means to define how a particular extension should be installed. Fortunately, PHP 5 greatly improves the XML handling tools available to us.

The easy way to parse the XML belonging to an extension is to employ the PHP 5 SimpleXML facility. The XML is loaded and turned into a set of objects by SimpleXML. The provided objects can be processed by simple mechanisms such as iteration and subscripting.

To see what can be done, consider the moderately complex XML shown in Appendix B, which is used for packaging the Aliro component that handles login and user management. It is actually an application, and incorporates ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required