PHP_FALIAS(new_xmldoc, domxml_new_xmldoc, NULL)
PHP_FALIAS(domxml_dumpmem, domxml_dump_mem, NULL)
PHP_FE(domxml_doc_validate, second_args_force_ref)
+ PHP_FE(domxml_doc_xinclude, NULL)
{NULL, NULL, NULL}
};
PHP_FALIAS(xptr_new_context, xptr_new_context, NULL)
#endif
PHP_FALIAS(validate, domxml_doc_validate, first_args_force_ref)
+ PHP_FALIAS(xinclude, domxml_doc_xinclude, NULL)
{NULL, NULL, NULL}
};
}
/* }}} */
+/* {{{ proto int domxml_doc_xinclude()
+ Substitutues xincludes in a DomDocument */
+PHP_FUNCTION(domxml_doc_xinclude)
+{
+ zval *id;
+ xmlDoc *docp;
+ int err;
+
+ DOMXML_PARAM_NONE(docp, id, le_domxmldocp);
+
+ err = xmlXIncludeProcess (docp);
+
+ if (err) {
+ RETVAL_LONG(err);
+ } else {
+ RETVAL_FALSE;
+ }
+
+}
+/* }}} */
+
#if HAVE_DOMXSLT
static zval *php_xsltstylesheet_new(xsltStylesheetPtr obj, int *found TSRMLS_DC)
{
PHP_FUNCTION(domxml_dump_mem_file);
PHP_FUNCTION(domxml_dump_node);
PHP_FUNCTION(domxml_doc_validate);
+PHP_FUNCTION(domxml_doc_xinclude);
#if defined(LIBXML_HTML_ENABLED)
PHP_FUNCTION(domxml_html_dump_mem);
#endif