首页 / XML / PHP中的DOMXML函数_PHP教程
PHP中的DOMXML函数_PHP教程
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了PHP中的DOMXML函数_PHP教程,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1863字,纯文字阅读大概需要3分钟。
内容图文
![PHP中的DOMXML函数_PHP教程](/upload/InfoBanner/zyjiaocheng/173/625a6ab5f16845b783ce15b0830c463f.jpg)
These functions are only available if PHP was configured with --with-dom=[DIR], using the GNOME xml library. You will need at least libxml-2.0.0 (the beta version will not work). These functions have been added in PHP4.
This module defines the following constants:
Table 1. XML constants
Constant Value Description
XML_ELEMENT_NODE 1
XML_ATTRIBUTE_NODE 2
XML_TEXT_NODE 3
XML_CDATA_SECTION_NODE 4
XML_ENTITY_REF_NODE 5
XML_ENTITY_NODE 6
XML_PI_NODE 7
XML_COMMENT_NODE 8
XML_DOCUMENT_NODE 9
XML_DOCUMENT_TYPE_NODE 10
XML_DOCUMENT_FRAG_NODE 11
XML_NOTATION_NODE 12
XML_GLOBAL_NAMESPACE 1
XML_LOCAL_NAMESPACE 2
This module defines a number of classes. The DOM XML functions return a parsed tree of the XML document with each node being an object belonging to one of these classes.
xmldoc
(PHP4 >= 4.0b4)
xmldoc -- Creates a DOM object of an XML document
Description
object xmldoc (string str)
The function parses the XML document in str and returns an object of class "Dom document", having the properties "doc" (resource), "version" (string) and "type" (long).
xmldocfile
(PHP4 >= 4.0b4)
xmldocfile -- Creates a DOM object from XML file
Description
object xmldocfile (string filename)
The function parses the XML document in the file named filename and returns an object of class "Dom document", having the properties "doc" (resource), "version" (string).
xmltree
(PHP4 >= 4.0b4)
xmltree -- Creates a tree of php objects from XML document
Description
object xmltree (string str)
The function parses the XML document in str and returns a tree PHP objects as the parsed document.
http://www.bkjia.com/PHPjc/445560.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/445560.htmlTechArticleDOM XML functions These functions are only available if PHP was configured with --with-dom=[DIR], using the GNOME xml library. You will need at least libxml-2.0.0 (the beta version...
内容总结
以上是互联网集市为您收集整理的PHP中的DOMXML函数_PHP教程全部内容,希望文章能够帮你解决PHP中的DOMXML函数_PHP教程所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。