如何解决“调用未定义函数domxml_new_doc()...". [英] How to solve "call to undefined function domxml_new_doc()...."
问题描述
我正在尝试使用domxml_new_doc输出xml.
I am trying to output xml by using domxml_new_doc.
但是,我刚刚得到了对未定义函数domxml_new_doc()错误的调用. 我尝试了谷歌它,但仍然没有运气.我必须安装任何扩展程序还是 图书馆?感谢您的帮助.
However, I just got the call to undefined function domxml_new_doc() error. I tried google it but still not luck. Do I have to install any extension or library? Thanks for the help.
$doc=domxml_new_doc("1.0"); //error on this line....
$node=$doc->create_element("marker");
$parnode=$doc->append_child($node);
推荐答案
you can see the requirements here. Quote:
此扩展程序使用»GNOME XML库.下载并安装此库.您至少需要libxml-2.4.14.要使用DOM XSLT功能,您可以使用»libxslt库和EXSLT的增强功能,这些增强功能来自» http://www.exslt.org/.如果您计划使用(增强)XSLT功能,请下载并安装这些库.您至少需要libxslt-1.0.18.
This extension makes use of the » GNOME XML library. Download and install this library. You will need at least libxml-2.4.14. To use DOM XSLT features you can use the » libxslt library and EXSLT enhancements from » http://www.exslt.org/. Download and install these libraries if you plan to use (enhanced) XSLT features. You will need at least libxslt-1.0.18.
这篇关于如何解决“调用未定义函数domxml_new_doc()...".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!