如何解决“调用未定义的函数 domxml_new_doc()....”
我正在尝试使用 domxml_new_doc 输出 xml。
但是,我刚刚收到调用未定义函数 domxml_new_doc() 错误。 我尝试用谷歌搜索但仍然不走运。我是否必须安装任何扩展或 图书馆?感谢您的帮助。
$doc=domxml_new_doc("1.0"); //error on this line....
$node=$doc->create_element("marker");
$parnode=$doc->append_child($node);
I am trying to output xml by using 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);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您使用什么 PHP 版本?您需要确保拥有 domxml 库/扩展。
What PHP version are you using? You need to ensure that make sure you have the domxml library/extension.
您可以在此处查看要求。引用:
you can see the requirements here. Quote: