PHP Classes
elePHPant
Icontem

DOM Adapter: Access XML documents with DOM API in PHP 4 and 5

Recommend this page to a friend!
  Info   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2007-01-17 (9 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,613 All time: 2,357 This week: 949Up
Version License Categories
domadapter 1.0GNU General Publi...XML
Description Author

This package can be used create or parse XML documents using a DOM 2 API implementation.

The API is the same that is provided by PHP 5. This package comes with an adapter that provides a PHP 5 DOM API implementation that works with the PHP 4 DOM API .

Innovation Award
PHP Programming Innovation award nominee
October 2006
Number 5


Prize: One book of choice by SAMS
DOM is a standard API for manipulating XML documents.

PHP 4 and PHP 5 have extensions that provide access to the DOM API for use in PHP applications. However, these extensions are not compatible.

This class attempts to solve the DOM API compatibility problem, eliminating the need to write application code that handles the differences between the PHP 4 and PHP 5 implementations.

Manuel Lemos
Picture of Diego Feitosa
Name: Diego Feitosa <contact>
Classes: 5 packages by
Country: Brazil Brazil
Innovation award
Innovation award
Nominee: 1x

Details
/**
 *+-----------------------------------------------------------------------+
 *| DOMAdapter v0.1 - 13 Oct 2006                                         |
 *+-----------------------------------------------------------------------+
 *|  Diego do Nascimento Feitosa                                          |
 *|  diego@dnfeitosa.com                                                  |
 *|  www.dnfeitosa.com                                                    |
 *|  São Paulo/SP - Brasil                                                |
 *+-----------------------------------------------------------------------+
 *| DOMAdapter is free software; you can redistribute it and/or modify    |
 *| it under the terms of the GNU General Public License as published by  |
 *| the Free Software Foundation; either version 2 of the License, or     |
 *| (at your option) any later version.                                   |
 *|                                                                       |
 *| DOMAdapter is distributed in the hope that it will be useful, but     |
 *| WITHOUT ANY WARRANTY; without even the implied warranty of            |
 *| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     |
 *| General Public License for more details.                              |
 *|                                                                       |
 *| You should have received a copy of the GNU General Public License     |
 *| along with DOMAdapter; if not, write to the Free Software             |
 *| Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA              |
 *| 02111-1307  USA                                                       |
 *+-----------------------------------------------------------------------+
**/

== About this class ==
This class enables you to use the PHP5 DOM Functions interface at PHP4. You can switch
between PHP4 and PHP5 without the change of any line in your code.


== Dependencies ==
To use this class, you must have the module 'domxml' loaded at you PHP4 enviroment.
You can find this module at http://pecl.php.net.


== Unexpected Behaviors ==
Please, if you find any unexpected behavior, mail me. If you create a patch to solve
this problem, send me, so I can update the class at the repository.


== Features ==
There are some features not implemented yet. I will work at this class and try to finish
a soon as possible.
  Files folder image Files  
File Role Description
Plain text file DOM.inc Class The Adapter Class
Plain text file DOMAdapter.inc Class Determines wich version of PHP you are running and create the proper DOM Object
Accessible without login Plain text file README Doc. Notes about the class
Accessible without login Plain text file creation.php Example Creation example
Accessible without login Plain text file example.xml Output Output of the creation.php example
Accessible without login Plain text file movies.xml Data Used in the reading.php example
Accessible without login Plain text file reading.php Example Reading example

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,613
This week:0
All time:2,357
This week:949Up