Re: New DTD Class

From: Date: Tue, 02 Sep 2003 18:29:33 +0000
Subject: Re: New DTD Class
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-20994@lists.php.net to get a copy of this message
Hi Tomas, I'm getting a Fatal error: Cannot redeclare class dtd in /path/to/DTD.php on line 51 However, when I do $php -l DTD.php, it says there are no syntax errors. Also, when installing it with the pear installer, it warns that it's an old archive format. I think this class looks very useful :-D Klaus ----- Original Message ----- From: "Tomas V.V.Cox" <cox@idecnet.com> To: <pear-dev@lists.php.net> Sent: Tuesday, September 02, 2003 6:54 PM Subject: [PEAR-DEV] New DTD Class > > Hi, > > I've coded a DTD parsing class plus a XML DTD Validation class. It > works quiet well in all situations where you don't use unusual stuff > (like ID type attributtes, etc). It uses sax so no need for the domxml > extension (you need XML_Tree installed). > > Of course it can handle our package.dtd (which is btw severly broken) > and even others more complex like the xhtml one. > > If you're interested in this class please download it at: > http://vulcanonet.com/soft/DTD.tgz > > The package includes (just uncompress it at some dir): > > DTD.php -> main class (parsing and dtd tree) > DTD/XML_Validator.php -> for validating xml files against their DTD > tests/test.php -> Usage: php test.php <dtd file> [<xml file>] > tests/*.(dtd|xml) -> Sample dtd's and xml's files for testing > > If you test it with your favourite dtd and find that it doesn't work, > please send me both the DTD, a sample XML and the output of the > "test.php" command. > > Atm the class is just a coding exercise, so it still needs clean-ups, > error reporting, error codes, pear packing, etc. > > -- > Tomas V.V.Cox mailto:cox@idecnet.com > > -- > PEAR Development Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

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