非常不好意思,没时间翻译,只好直接贴出来了
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.
Java Asp PHP .Net XML C/C++ CGI VB Jsp J2ee J2se J2me EJB Servlet Tomcat Resin Struts Weblogic Eclipse ANT GUI JMS Web servise IDEA Webphere Hibernate Spring Jboss Applet Swing Socket Javamail Perl Ajax P2P 安全 模式 框架 测试 开源 游戏
Windows XP Windows 2000 Windows 2003 Windows Me Windows 9.x Linux UNIX 注册表 操作系统 服务器 应用服务器