Proposal: DOM package
| From: | Matt Kynaston | Date: | Fri, 11 Jul 2003 10:21:39 +0000 |
| Subject: | Proposal: DOM package | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-18170@lists.php.net to get a copy of this message | ||
Hi there,
Didn't get off to a very auspicious start with my last post, but I've
updated stuff and packaged it properly, so I'll try again...
Summary:
DOM aims to be a set of classes providing an abstraction layer for the
various versions of PHP4's domxml extension and PHP5's dom extension.
The main goal in writing this was to avoid recoding all xml stuff
when PHP5 becomes available. A side effect is that it makes
domxml much more DOM-compliant (which can't be a bad thing ;)
Each of the DOM 'interfaces' is represented as a class - which means
that the package will also bring some previously unavailable
functionality, such as NamedNodeMaps and DocumentFragments, to domxml.
There's also a test suite which currently runs nearly 200 tests over the
classes, checking return values for conformance to the DOM level
specified.
The test suite now also has a 'raw php5 mode', which enables you to run
the same tests over the php5 beta's dom extension instead of using the
DOM_* abstraction classes. It's big, ugly and still needs work. I
wouldn't stand by the results in a court of law, but the core stuff is
there. The idea was to help in writing the php5 abstraction classes, but
it occurred to me this might also be useful for the extn developers.
Full details are at:
http://matt.online-canarias.com/dom/
Please let me know what you think.
Regards,
Matt