New DTD Class

From: Date: Tue, 02 Sep 2003 16:54:08 +0000
Subject: New DTD Class
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-20993@lists.php.net to get a copy of this message
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

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