An Alternative PHP/DOM Implementation: eZXML

A DOM parser written in PHP, the eZXML class provides a primitive, though effective, alternative to PHP’s native DOM extension. Developed as part of a larger publishing system by eZ Systems, it is freely available under the GPL from http://developer.ez.no/.

Version Control

All the examples in this section use version 1.0.3 of the eZXML class.

The eZXML class works in much the same way as PHP’s native DOM library, creating a series of nested objects to represent the structure of an XML document. Each of these objects exposes standard properties, which can be used to traverse the object tree; and access specific elements, attributes, or data. In order to illustrate how this works, consider the simple ...

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.