Re: New DTD Class

From: Date: Wed, 03 Sep 2003 22:09:49 +0000
Subject: Re: New DTD Class
References: 1 2 3 4  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-21036@lists.php.net to get a copy of this message
On Wednesday, September 3, 2003 12:55, Klaus Guenther wrote: > I found out that new DTD was conflicting with domxml for some unknown > reason. > Warning: domnode() expects exactly 1 parameter, 0 given in > /usr/share/php/XML/DTD/XML_Validator.php on line 45 > (I have php 4.3.3rc4, with domxml, etc. and XML_Tree 1.1) > So what I ended up doing was the following: > I created this directory structure: > XML/DTD.php > XML/DTD/XML_Validator.php > And I renamed the classes to: > XML_DTD > XML_DTD_Tree > XML_DTD_XML_Validator > and appropriately changed all references to them. > And I pear packaged that and now it loads up just fine... but... it prints > out an empty XML_DTD_Tree object when I try to validate a DTD, and if I try > to validate an XML file, it says that none of the elements are declared. I got the same while changing the dir structure, my problem (probably yours too) was that I didn't change the constructor name of the DTD_Tree class :-) Any way, I've fixed the conflict with the domxml native DTD class. The new package (do not try "pear install"): http://vulcanonet.com/soft/XML_DTD.tgz Thanks for the feedback, -- Tomas V.V.Cox mailto:cox@idecnet.com

« previous php.pear.dev (#21036) next »