Links to know aboutMusic The Chiara String Quartet Chiara Quartet (MySpace) Greenwood Music Camp UNL School of Music PHP PEAR Installer Manifesto phpDocumentor PEAR phar docblock PHP_Parser PHP_Parser_DocblockParser PHP_ParserGenerator PHP_LexerGenerator PEAR_PackageFileManager PHP_Archive Games_Chess Blogs Joshua Eichorn Paul M. Jones Davey Shafik Popular EntriesSetting up your own PEAR channel with Chiara_PEAR_Server - the official way
(28) Do you develop a website? It is infinitely better to synchronize live and development sites using the PEAR Installer(25) Using PEAR 1.4.0 to install PEAR packages on a remote host(19) doing the PEAR thing(19) phpDocumentor and __get/__set/__call - give us your ideas (RFC)(17) CategoriesPowered by |
Tuesday, June 5. 2007W3C Schema/Relax NG/DTD seem to be totally useless in PHP, help?Trackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
sorry, xmllint is useless
1) not installed on any windows platforms 2) has to be called with exec I need a solution *in* PHP
This is probably overkill, but you could implement a PHP extension wrapper for xmllint.
xmllint (besides being a non-option for greg) wouldn't help, as it's based on the same library as the PHP XML extensions. If PHP can't correctly validate it, xmllint can't either..
The same goes for the errormessages, PHP more or less just pipes the messages from libxml2 through, I assume xmllint doesn't do it differently.
You may unfortunately have to wait for a complete implementation of XMLSchema in libxml. According to its TODO list, XMLSchema Part 2 is complete (it only covers the different datatypes). The Part 1, who defines the structure is indeed not finished.
I had the same problem, so I only used XMLSchema validation only for very simple schemas. For other thing, a DTD works sometimes as long as you don't need namespaces or very complex validation rules... |
Links in this articlePEAR Installer ManifestoCalendar
QuicksearchMy Latest ReleasesTop Exitspear.php.net (406)
www.php.net (107) www.chiaraquartet.net (106) pecl.php.net (103) www.vmware.com (90) Blog Administration |
|||||||||||||||||||||||||||||||||||||||||||||||||