找回密码
 注册
【阿里云】2核2G云新老同享 99元/年,续费同价华为云精选云产品特惠做网站就用糖果主机Jtti,新加坡服务器,美国服务器,香港服务器
查看: 359|回复: 2

PHP中的DOM XML函数

[复制链接]
发表于 2005 年 10 月 8 日 15:45:37 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
  DOM 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 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://edu.chinaz.com
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
发表于 2005 年 10 月 8 日 20:21:59 | 显示全部楼层
【腾讯云】2核2G云服务器新老同享 99元/年,续费同价
没人顶 我自己顶
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

 楼主| 发表于 2005 年 10 月 8 日 15:45:37 | 显示全部楼层

PHP中的DOM XML函数

  DOM 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 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://edu.chinaz.com
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|金光论坛

GMT+8, 2024 年 11 月 20 日 17:12 , Processed in 0.113146 second(s), 23 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表