diff options
author | Christian Stocker <chregu@php.net> | 2002-06-13 09:05:56 +0000 |
---|---|---|
committer | Christian Stocker <chregu@php.net> | 2002-06-13 09:05:56 +0000 |
commit | 1177e74fea999a8a37e3dd21ca9f85f3f4b0dad0 (patch) | |
tree | 005e3524cdab37f515e398d6e636f87eb0e44251 /ext/domxml/php_domxml.h | |
parent | 11bc56d48b8e504f8de3a5c48e5d8ba9f07cd73c (diff) | |
download | php-git-1177e74fea999a8a37e3dd21ca9f85f3f4b0dad0.tar.gz |
@ - Added better error-messages (3rd parameter) and validating of DTDs (2nd parameter) to
@ domxml_open_mem(string xml[, int mode[, array errors]]) and domxml_open_file(string filename[, int mode[, array errors]]).
@ - Added domxml_doc_validate([array errors]) for validating existing DomDocuments with a DTD.
Diffstat (limited to 'ext/domxml/php_domxml.h')
-rw-r--r-- | ext/domxml/php_domxml.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ext/domxml/php_domxml.h b/ext/domxml/php_domxml.h index eb7bceb0e8..22432fb4f5 100644 --- a/ext/domxml/php_domxml.h +++ b/ext/domxml/php_domxml.h @@ -103,7 +103,7 @@ PHP_FUNCTION(domxml_doc_ids); PHP_FUNCTION(domxml_dump_mem); PHP_FUNCTION(domxml_dump_mem_file); PHP_FUNCTION(domxml_dump_node); - +PHP_FUNCTION(domxml_doc_validate); #if defined(LIBXML_HTML_ENABLED) PHP_FUNCTION(domxml_html_dump_mem); #endif @@ -211,9 +211,14 @@ PHP_FUNCTION(domxml_xslt_stylesheet_file); PHP_FUNCTION(domxml_xslt_process); PHP_FUNCTION(domxml_xslt_version); #endif - +typedef struct { + zval *errors; + xmlValidCtxtPtr valid; + xmlParserCtxtPtr parser; +} domxml_ErrorCtxt; #else #define domxml_module_ptr NULL + #endif /* HAVE_DOMXML */ #define phpext_domxml_ptr domxml_module_ptr |