Summary

PHP’s XML extensions, especially those that ship with newer versions of the language, are more than sufficient for most development tasks. However, if your PHP build doesn’t support a particular XML extension, and you’re not in a position to recompile a new build, your development efforts can get rapidly derailed. Further, many of PHP’s built-in extensions are still experimental and in a state of flux. In such a situation, an external class that is more stable (and perhaps also easier to use) is often a viable option.

A number of open source XML/PHP projects are available to work around the problem. Implemented as PHP classes that can easily be included in your application, they allow you, the developer, to reproduce the functionality ...

Get XML and PHP now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.