phpDOM is a class library for creating, extending and manipulating XML documents. It is based on the DOM/XML library of PHP 4.x. It acts as a wrapper to the functions provided
by the DOM/XML library. It can be easily extended to reflect your needs and to create specific documents.
phpDOM includes two packages: phpDOM for pure XML, and phpDOM.XHTML for well-formed XHTML documents. These two packages can be used as examples of how to extend the base
phpDOM "tries" to cover the W3C DOM specification and offers a similar syntax to all functions like the W3C specifaction. Since the library depends on the DOM/XML library it
is currently not possible to provide all functions of the W3C DOM API, but it provides very good functionality to maintain XML documents as well as XHTML documents.
The code below is just a sample of how the library works, please refer to the "Example-Page" to get the entire library!