<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >DOM XML Functions</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" TITLE="PHP 手册" HREF="index.html"><LINK REL="UP" TITLE="函数参考" HREF="funcref.html"><LINK REL="PREVIOUS" TITLE="dom_import_simplexml" HREF="function.dom-import-simplexml.html"><LINK REL="NEXT" TITLE="DomAttribute->name" HREF="function.domattribute-name.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8"></HEAD ><BODY CLASS="reference" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >PHP 手册</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.dom-import-simplexml.html" ACCESSKEY="P" >上一页</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.domattribute-name.html" ACCESSKEY="N" >下一页</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="reference" ><A NAME="ref.domxml" ></A ><DIV CLASS="TITLEPAGE" ><H1 CLASS="title" >XXXI. DOM XML Functions</H1 ><DIV CLASS="PARTINTRO" ><A NAME="AEN42815" ></A ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="domxml.intro" >简介</A ></H1 ><P > The DOM XML extension has been overhauled in PHP 4.3.0 to better comply with the DOM standard. The extension still contains many old functions, but they should no longer be used. In particular, functions that are not object-oriented should be avoided. </P ><P > The extension allows you to operate on an XML document with the DOM API. It also provides a function <A HREF="function.domxml-xmltree.html" ><B CLASS="function" >domxml_xmltree()</B ></A > to turn the complete XML document into a tree of PHP objects. Currently, this tree should be considered read-only - you can modify it, but this would not make any sense since <A HREF="function.domdocument-dump-mem.html" ><B CLASS="function" >DomDocument_dump_mem()</B ></A > cannot be applied to it. Therefore, if you want to read an XML file and write a modified version, use <A HREF="function.domdocument-create-element.html" ><B CLASS="function" >DomDocument_create_element()</B ></A >, <A HREF="function.domdocument-create-text-node.html" ><B CLASS="function" >DomDocument_create_text_node()</B ></A >, <B CLASS="function" >set_attribute()</B >, etc. and finally the <A HREF="function.domdocument-dump-mem.html" ><B CLASS="function" >DomDocument_dump_mem()</B ></A > function. </P ><DIV CLASS="note" ><BLOCKQUOTE CLASS="note" ><P ><B >注意: </B > 本扩展已被移动到 <A HREF="http://pecl.php.net" TARGET="_top" >PECL</A > 库中且自以下版本起不再被绑定到 PHP 中:5.0.0. </P ></BLOCKQUOTE ></DIV ><DIV CLASS="note" ><BLOCKQUOTE CLASS="note" ><P ><B >注意: </B > This extension is no longer marked experimental. It will, however, never be released with PHP 5, and will only be distributed with PHP 4. If you need DOM XML support with PHP 5 you can use the <A HREF="ref.dom.html" >DOM</A > extension. This <TT CLASS="literal" >domxml</TT > extension is not compatible with the <A HREF="ref.dom.html" >DOM</A > extension. </P ></BLOCKQUOTE ></DIV ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="domxml.requirements" >需求</A ></H1 ><P > This extension makes use of the <A HREF="http://www.xmlsoft.org/" TARGET="_top" >GNOME XML library</A >. Download and install this library. You will need at least libxml-2.4.14. To use DOM XSLT features you can use the <A HREF="http://xmlsoft.org/XSLT/" TARGET="_top" >libxslt library</A > and EXSLT enhancements from <A HREF="http://www.exslt.org/" TARGET="_top" >http://www.exslt.org/</A >. Download and install these libraries if you plan to use (enhanced) XSLT features. You will need at least libxslt-1.0.18. </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="domxml.installation" >安装</A ></H1 ><P > 本 <A HREF="http://pecl.php.net" TARGET="_top" >PECL</A > 扩展未绑定于 PHP 中。 安装此 PECL 扩展库的信息可在手册中标题为 <A HREF="install.pecl.html" >PECL 扩展库安装</A >的一章中找到。 更多信息如新版本,下载,源文件,维护者信息以及更新日志等可以在这里找到: <A HREF="http://pecl.php.net/package/domxml" TARGET="_top" >http://pecl.php.net/package/domxml</A >. </P ><P > 在 PHP 4 中本 <ACRONYM CLASS="acronym" >PECL</ACRONYM > 扩展的源程序位于 PHP 源程序中的 <TT CLASS="filename" >ext/</TT > 目录下或者在上面的 <ACRONYM CLASS="acronym" >PECL</ACRONYM > 连接中。 This extension is only available if PHP was configured with <CODE CLASS="option" >--with-dom[=DIR]</CODE >. Add <CODE CLASS="option" >--with-dom-xslt[=DIR]</CODE > to include DOM XSLT support. DIR is the libxslt install directory. Add <CODE CLASS="option" >--with-dom-exslt[=DIR]</CODE > to include DOM EXSLT support, where DIR is the libexslt install directory. </P ><P > Windows users will enable <TT CLASS="filename" >php_domxml.dll</TT > inside of <TT CLASS="filename" >php.ini</TT > in order to use these functions. 在 PHP 4 中本 <ACRONYM CLASS="acronym" >DLL</ACRONYM > 位于 PHP Windows 执行包中的 <TT CLASS="filename" >extensions/</TT > 目录下。 可以从 <A HREF="http://www.php.net/downloads.php" TARGET="_top" >PHP 下载页面</A >或者 <A HREF="http://snaps.php.net/" TARGET="_top" >http://snaps.php.net/</A > 下载此 <ACRONYM CLASS="acronym" >PECL</ACRONYM > 扩展的 <ACRONYM CLASS="acronym" >DLL</ACRONYM > 文件。 Also, there is one additional DLL that must be made available to your system's PATH in order for this extension to work. In PHP 4 this is in the <TT CLASS="filename" >dlls/</TT > directory. It's name: For PHP <= 4.2.0, it's <TT CLASS="filename" >libxml2.dll</TT >. For PHP >= 4.3.0, it's <TT CLASS="filename" >iconv.dll</TT >. And as of PHP 5.0.0, iconv is compiled into your Windows PHP binaries by default so no extra DLL is needed. </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="domxml.deprecated" >Deprecated functions</A ></H1 ><P > There are quite a few functions that do not fit into the DOM standard and should no longer be used. These functions are listed in the following table. The function <A HREF="function.domnode-append-child.html" ><B CLASS="function" >DomNode_append_child()</B ></A > has changed its behaviour. It now adds a child and not a sibling. If this breaks your application, use the non-DOM function <A HREF="function.domnode-append-sibling.html" ><B CLASS="function" >DomNode_append_sibling()</B ></A >. </P ><P > <DIV CLASS="table" ><A NAME="AEN42871" ></A ><P ><B >表 1. Deprecated functions and their replacements</B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><THEAD ><TR ><TH >Old function</TH ><TH >New function</TH ></TR ></THEAD ><TBODY ><TR ><TD >xmldoc</TD ><TD ><A HREF="function.domxml-open-mem.html" ><B CLASS="function" >domxml_open_mem()</B ></A ></TD ></TR ><TR ><TD >xmldocfile</TD ><TD ><A HREF="function.domxml-open-file.html" ><B CLASS="function" >domxml_open_file()</B ></A ></TD ></TR ><TR ><TD >domxml_new_xmldoc</TD ><TD ><A HREF="function.domxml-new-doc.html" ><B CLASS="function" >domxml_new_doc()</B ></A ></TD ></TR ><TR ><TD >domxml_dump_mem</TD ><TD ><A HREF="function.domdocument-dump-mem.html" ><B CLASS="function" >DomDocument_dump_mem()</B ></A ></TD ></TR ><TR ><TD >domxml_dump_mem_file</TD ><TD ><A HREF="function.domdocument-dump-file.html" ><B CLASS="function" >DomDocument_dump_file()</B ></A ></TD ></TR ><TR ><TD >DomDocument_dump_mem_file</TD ><TD ><A HREF="function.domdocument-dump-file.html" ><B CLASS="function" >DomDocument_dump_file()</B ></A ></TD ></TR ><TR ><TD >DomDocument_add_root</TD ><TD ><A HREF="function.domdocument-create-element.html" ><B CLASS="function" >DomDocument_create_element()</B ></A > followed by <A HREF="function.domnode-append-child.html" ><B CLASS="function" >DomNode_append_child()</B ></A ></TD ></TR ><TR ><TD >DomDocument_dtd</TD ><TD ><A HREF="function.domdocument-doctype.html" ><B CLASS="function" >DomDocument_doctype()</B ></A ></TD ></TR ><TR ><TD >DomDocument_root</TD ><TD ><A HREF="function.domdocument-document-element.html" ><B CLASS="function" >DomDocument_document_element()</B ></A ></TD ></TR ><TR ><TD >DomDocument_children</TD ><TD ><A HREF="function.domnode-child-nodes.html" ><B CLASS="function" >DomNode_child_nodes()</B ></A ></TD ></TR ><TR ><TD >DomDocument_imported_node</TD ><TD >No replacement.</TD ></TR ><TR ><TD >DomNode_add_child</TD ><TD >Create a new node with e.g. <A HREF="function.domdocument-create-element.html" ><B CLASS="function" >DomDocument_create_element()</B ></A > and add it with <A HREF="function.domnode-append-child.html" ><B CLASS="function" >DomNode_append_child()</B ></A >. </TD ></TR ><TR ><TD >DomNode_children</TD ><TD ><A HREF="function.domnode-child-nodes.html" ><B CLASS="function" >DomNode_child_nodes()</B ></A ></TD ></TR ><TR ><TD >DomNode_parent</TD ><TD ><A HREF="function.domnode-parent-node.html" ><B CLASS="function" >DomNode_parent_node()</B ></A ></TD ></TR ><TR ><TD >DomNode_new_child</TD ><TD >Create a new node with e.g. <A HREF="function.domdocument-create-element.html" ><B CLASS="function" >DomDocument_create_element()</B ></A > and add it with <A HREF="function.domnode-append-child.html" ><B CLASS="function" >DomNode_append_child()</B ></A >. </TD ></TR ><TR ><TD >DomNode_set_content</TD ><TD >Create a new node with e.g. <A HREF="function.domdocument-create-text-node.html" ><B CLASS="function" >DomDocument_create_text_node()</B ></A > and add it with <A HREF="function.domnode-append-child.html" ><B CLASS="function" >DomNode_append_child()</B ></A >. </TD ></TR ><TR ><TD >DomNode_get_content</TD ><TD >Content is just a text node and can be accessed with <A HREF="function.domnode-child-nodes.html" ><B CLASS="function" >DomNode_child_nodes()</B ></A >. </TD ></TR ><TR ><TD >DomNode_set_content</TD ><TD >Content is just a text node and can be added with <A HREF="function.domnode-append-child.html" ><B CLASS="function" >DomNode_append_child()</B ></A >. </TD ></TR ></TBODY ></TABLE ></DIV > </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="domxml.constants" >预定义常量</A ></H1 ><P >以下常量由本扩展模块定义,因此只有在本扩展模块被编译到 PHP 中,或者在运行时被动态加载后才有效。</P ><DIV CLASS="table" ><A NAME="AEN42957" ></A ><P ><B >表 2. XML constants</B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><COL><THEAD ><TR ><TH >Constant</TH ><TH >Value</TH ><TH >Description</TH ></TR ></THEAD ><TBODY ><TR ><TD > <TT CLASS="constant" ><B >XML_ELEMENT_NODE</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD >1</TD ><TD >Node is an element</TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XML_ATTRIBUTE_NODE</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD >2</TD ><TD >Node is an attribute</TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XML_TEXT_NODE</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD >3</TD ><TD >Node is a piece of text</TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XML_CDATA_SECTION_NODE</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD >4</TD ><TD > </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XML_ENTITY_REF_NODE</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD >5</TD ><TD > </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XML_ENTITY_NODE</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD >6</TD ><TD >Node is an entity like &nbsp;</TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XML_PI_NODE</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD >7</TD ><TD >Node is a processing instruction</TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XML_COMMENT_NODE</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD >8</TD ><TD >Node is a comment</TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XML_DOCUMENT_NODE</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD >9</TD ><TD >Node is a document</TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XML_DOCUMENT_TYPE_NODE</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD >10</TD ><TD > </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XML_DOCUMENT_FRAG_NODE</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD >11</TD ><TD > </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XML_NOTATION_NODE</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD >12</TD ><TD > </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XML_GLOBAL_NAMESPACE</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD >1</TD ><TD > </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XML_LOCAL_NAMESPACE</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD >2</TD ><TD > </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XML_HTML_DOCUMENT_NODE</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD > </TD ><TD > </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XML_DTD_NODE</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD > </TD ><TD > </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XML_ELEMENT_DECL_NODE</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD > </TD ><TD > </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XML_ATTRIBUTE_DECL_NODE</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD > </TD ><TD > </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XML_ENTITY_DECL_NODE</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD > </TD ><TD > </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XML_NAMESPACE_DECL_NODE</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD > </TD ><TD > </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XML_ATTRIBUTE_CDATA</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD > </TD ><TD > </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XML_ATTRIBUTE_ID</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD > </TD ><TD > </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XML_ATTRIBUTE_IDREF</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD > </TD ><TD > </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XML_ATTRIBUTE_IDREFS</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD > </TD ><TD > </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XML_ATTRIBUTE_ENTITY</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD > </TD ><TD > </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XML_ATTRIBUTE_NMTOKEN</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD > </TD ><TD > </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XML_ATTRIBUTE_NMTOKENS</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD > </TD ><TD > </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XML_ATTRIBUTE_ENUMERATION</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD > </TD ><TD > </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XML_ATTRIBUTE_NOTATION</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD > </TD ><TD > </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XPATH_UNDEFINED</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD > </TD ><TD > </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XPATH_NODESET</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD > </TD ><TD > </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XPATH_BOOLEAN</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD > </TD ><TD > </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XPATH_NUMBER</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD > </TD ><TD > </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XPATH_STRING</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD > </TD ><TD > </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XPATH_POINT</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD > </TD ><TD > </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XPATH_RANGE</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD > </TD ><TD > </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XPATH_LOCATIONSET</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD > </TD ><TD > </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XPATH_USERS</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD > </TD ><TD > </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >XPATH_NUMBER</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD > </TD ><TD > </TD ></TR ></TBODY ></TABLE ></DIV ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="domxml.classes" >Classes</A ></H1 ><P > The API of the module follows the DOM Level 2 standard as closely as possible. Consequently, the API is fully object-oriented. It is a good idea to have the DOM standard available when using this module. Though the API is object-oriented, there are many functions which can be called in a non-object-oriented way by passing the object to operate on as the first argument. These functions are mainly to retain compatibility to older versions of the extension, and should not be used when creating new scripts. </P ><P > This API differs from the official DOM API in two ways. First, all class attributes are implemented as functions with the same name. Secondly, the function names follow the PHP naming convention. This means that a DOM function lastChild() will be written as last_child(). </P ><P > This module defines a number of classes, which are listed - including their method - in the following tables. Classes with an equivalent in the DOM standard are named DOMxxx. </P ><P > <DIV CLASS="table" ><A NAME="AEN43206" ></A ><P ><B >表 3. List of classes</B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><THEAD ><TR ><TH >Class name</TH ><TH >Parent classes</TH ></TR ></THEAD ><TBODY ><TR ><TD >DomAttribute</TD ><TD >DomNode</TD ></TR ><TR ><TD >DomCData</TD ><TD >DomNode</TD ></TR ><TR ><TD >DomComment</TD ><TD >DomCData : DomNode</TD ></TR ><TR ><TD >DomDocument</TD ><TD >DomNode</TD ></TR ><TR ><TD >DomDocumentType</TD ><TD >DomNode</TD ></TR ><TR ><TD >DomElement</TD ><TD >DomNode</TD ></TR ><TR ><TD >DomEntity</TD ><TD >DomNode</TD ></TR ><TR ><TD >DomEntityReference</TD ><TD >DomNode</TD ></TR ><TR ><TD >DomProcessingInstruction</TD ><TD >DomNode</TD ></TR ><TR ><TD >DomText</TD ><TD >DomCData : DomNode</TD ></TR ><TR ><TD >Parser</TD ><TD >Currently still called DomParser</TD ></TR ><TR ><TD >XPathContext</TD ><TD > </TD ></TR ></TBODY ></TABLE ></DIV > </P ><P > <DIV CLASS="table" ><A NAME="AEN43251" ></A ><P ><B >表 4. DomDocument class (DomDocument : DomNode)</B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><COL><THEAD ><TR ><TH >Method name</TH ><TH >Function name</TH ><TH >Remark</TH ></TR ></THEAD ><TBODY ><TR ><TD >doctype</TD ><TD ><A HREF="function.domdocument-doctype.html" ><B CLASS="function" >DomDocument_doctype()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD >document_element</TD ><TD ><A HREF="function.domdocument-document-element.html" ><B CLASS="function" >DomDocument_document_element()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD >create_element</TD ><TD ><A HREF="function.domdocument-create-element.html" ><B CLASS="function" >DomDocument_create_element()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD >create_text_node</TD ><TD ><A HREF="function.domdocument-create-text-node.html" ><B CLASS="function" >DomDocument_create_text_node()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD >create_comment</TD ><TD ><A HREF="function.domdocument-create-comment.html" ><B CLASS="function" >DomDocument_create_comment()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD >create_cdata_section</TD ><TD ><A HREF="function.domdocument-create-cdata-section.html" ><B CLASS="function" >DomDocument_create_cdata_section()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD >create_processing_instruction</TD ><TD ><A HREF="function.domdocument-create-processing-instruction.html" ><B CLASS="function" >DomDocument_create_processing_instruction()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD >create_attribute</TD ><TD ><A HREF="function.domdocument-create-attribute.html" ><B CLASS="function" >DomDocument_create_attribute()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD >create_entity_reference</TD ><TD ><A HREF="function.domdocument-create-entity-reference.html" ><B CLASS="function" >DomDocument_create_entity_reference()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD >get_elements_by_tagname</TD ><TD ><A HREF="function.domdocument-get-elements-by-tagname.html" ><B CLASS="function" >DomDocument_get_elements_by_tagname()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD >get_element_by_id</TD ><TD ><A HREF="function.domdocument-get-element-by-id.html" ><B CLASS="function" >DomDocument_get_element_by_id()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD >dump_mem</TD ><TD ><A HREF="function.domdocument-dump-mem.html" ><B CLASS="function" >DomDocument_dump_mem()</B ></A ></TD ><TD >not DOM standard</TD ></TR ><TR ><TD >dump_file</TD ><TD ><A HREF="function.domdocument-dump-file.html" ><B CLASS="function" >DomDocument_dump_file()</B ></A ></TD ><TD >not DOM standard</TD ></TR ><TR ><TD >html_dump_mem</TD ><TD ><A HREF="function.domdocument-html-dump-mem.html" ><B CLASS="function" >DomDocument_html_dump_mem()</B ></A ></TD ><TD >not DOM standard</TD ></TR ><TR ><TD >xpath_init</TD ><TD >xpath_init</TD ><TD >not DOM standard</TD ></TR ><TR ><TD >xpath_new_context</TD ><TD >xpath_new_context</TD ><TD >not DOM standard</TD ></TR ><TR ><TD >xptr_new_context</TD ><TD >xptr_new_context</TD ><TD >not DOM standard</TD ></TR ></TBODY ></TABLE ></DIV > </P ><P > <DIV CLASS="table" ><A NAME="AEN43343" ></A ><P ><B >表 5. DomElement class (DomElement : DomNode)</B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><COL><THEAD ><TR ><TH >Method name</TH ><TH >Function name</TH ><TH >Remark</TH ></TR ></THEAD ><TBODY ><TR ><TD >tagname</TD ><TD ><A HREF="function.domelement-tagname.html" ><B CLASS="function" >DomElement_tagname()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD >get_attribute</TD ><TD ><A HREF="function.domelement-get-attribute.html" ><B CLASS="function" >DomElement_get_attribute()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD >set_attribute</TD ><TD ><A HREF="function.domelement-set-attribute.html" ><B CLASS="function" >DomElement_set_attribute()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD >remove_attribute</TD ><TD ><A HREF="function.domelement-remove-attribute.html" ><B CLASS="function" >DomElement_remove_attribute()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD >get_attribute_node</TD ><TD ><A HREF="function.domelement-get-attribute-node.html" ><B CLASS="function" >DomElement_get_attribute_node()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD >set_attribute_node</TD ><TD ><A HREF="function.domelement-set-attribute-node.html" ><B CLASS="function" >DomElement_set_attribute_node()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD >get_elements_by_tagname</TD ><TD ><A HREF="function.domelement-get-elements-by-tagname.html" ><B CLASS="function" >DomElement_get_elements_by_tagname()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD >has_attribute</TD ><TD ><A HREF="function.domelement-has-attribute.html" ><B CLASS="function" >DomElement_has_attribute()</B ></A ></TD ><TD > </TD ></TR ></TBODY ></TABLE ></DIV > </P ><P > <DIV CLASS="table" ><A NAME="AEN43393" ></A ><P ><B >表 6. DomNode class</B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><THEAD ><TR ><TH >Method name</TH ><TH >Remark</TH ></TR ></THEAD ><TBODY ><TR ><TD ><A HREF="function.domnode-node-name.html" ><B CLASS="function" >DomNode_node_name()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD ><A HREF="function.domnode-node-value.html" ><B CLASS="function" >DomNode_node_value()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD ><A HREF="function.domnode-node-type.html" ><B CLASS="function" >DomNode_node_type()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD ><A HREF="function.domnode-last-child.html" ><B CLASS="function" >DomNode_last_child()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD ><A HREF="function.domnode-first-child.html" ><B CLASS="function" >DomNode_first_child()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD ><A HREF="function.domnode-child-nodes.html" ><B CLASS="function" >DomNode_child_nodes()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD ><A HREF="function.domnode-previous-sibling.html" ><B CLASS="function" >DomNode_previous_sibling()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD ><A HREF="function.domnode-next-sibling.html" ><B CLASS="function" >DomNode_next_sibling()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD ><A HREF="function.domnode-parent-node.html" ><B CLASS="function" >DomNode_parent_node()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD ><A HREF="function.domnode-owner-document.html" ><B CLASS="function" >DomNode_owner_document()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD ><A HREF="function.domnode-insert-before.html" ><B CLASS="function" >DomNode_insert_before()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD ><A HREF="function.domnode-append-child.html" ><B CLASS="function" >DomNode_append_child()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD ><A HREF="function.domnode-append-sibling.html" ><B CLASS="function" >DomNode_append_sibling()</B ></A ></TD ><TD >Not in DOM standard. This function emulates the former behaviour of <A HREF="function.domnode-append-child.html" ><B CLASS="function" >DomNode_append_child()</B ></A >.</TD ></TR ><TR ><TD ><A HREF="function.domnode-remove-child.html" ><B CLASS="function" >DomNode_remove_child()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD ><A HREF="function.domnode-has-child-nodes.html" ><B CLASS="function" >DomNode_has_child_nodes()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD ><A HREF="function.domnode-has-attributes.html" ><B CLASS="function" >DomNode_has_attributes()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD ><A HREF="function.domnode-clone-node.html" ><B CLASS="function" >DomNode_clone_node()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD ><A HREF="function.domnode-attributes.html" ><B CLASS="function" >DomNode_attributes()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD ><A HREF="function.domnode-unlink-node.html" ><B CLASS="function" >DomNode_unlink_node()</B ></A ></TD ><TD >Not in DOM standard</TD ></TR ><TR ><TD ><A HREF="function.domnode-replace-node.html" ><B CLASS="function" >DomNode_replace_node()</B ></A ></TD ><TD >Not in DOM standard</TD ></TR ><TR ><TD ><A HREF="function.domnode-set-content.html" ><B CLASS="function" >DomNode_set_content()</B ></A ></TD ><TD >Not in DOM standard, deprecated</TD ></TR ><TR ><TD ><A HREF="function.domnode-get-content.html" ><B CLASS="function" >DomNode_get_content()</B ></A ></TD ><TD >Not in DOM standard, deprecated</TD ></TR ><TR ><TD ><A HREF="function.domnode-dump-node.html" ><B CLASS="function" >DomNode_dump_node()</B ></A ></TD ><TD >Not in DOM standard</TD ></TR ><TR ><TD ><A HREF="function.domnode-is-blank-node.html" ><B CLASS="function" >DomNode_is_blank_node()</B ></A ></TD ><TD >Not in DOM standard</TD ></TR ></TBODY ></TABLE ></DIV > </P ><P > <DIV CLASS="table" ><A NAME="AEN43499" ></A ><P ><B >表 7. DomAttribute class (DomAttribute : DomNode)</B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><COL><THEAD ><TR ><TH >Method name</TH ><TH > </TH ><TH >Remark</TH ></TR ></THEAD ><TBODY ><TR ><TD >name</TD ><TD ><A HREF="function.domattribute-name.html" ><B CLASS="function" >DomAttribute_name()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD >value</TD ><TD ><A HREF="function.domattribute-value.html" ><B CLASS="function" >DomAttribute_value()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD >specified</TD ><TD ><A HREF="function.domattribute-specified.html" ><B CLASS="function" >DomAttribute_specified()</B ></A ></TD ><TD > </TD ></TR ></TBODY ></TABLE ></DIV > </P ><P > <DIV CLASS="table" ><A NAME="AEN43524" ></A ><P ><B >表 8. DomProcessingInstruction class (DomProcessingInstruction : DomNode)</B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><COL><THEAD ><TR ><TH >Method name</TH ><TH >Function name</TH ><TH >Remark</TH ></TR ></THEAD ><TBODY ><TR ><TD >target</TD ><TD ><A HREF="function.domprocessinginstruction-target.html" ><B CLASS="function" >DomProcessingInstruction_target()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD >data</TD ><TD ><A HREF="function.domprocessinginstruction-data.html" ><B CLASS="function" >DomProcessingInstruction_data()</B ></A ></TD ><TD > </TD ></TR ></TBODY ></TABLE ></DIV > </P ><P > <DIV CLASS="table" ><A NAME="AEN43544" ></A ><P ><B >表 9. Parser class</B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><COL><THEAD ><TR ><TH >Method name</TH ><TH >Function name</TH ><TH >Remark</TH ></TR ></THEAD ><TBODY ><TR ><TD >add_chunk</TD ><TD ><B CLASS="function" >Parser_add_chunk()</B ></TD ><TD > </TD ></TR ><TR ><TD >end</TD ><TD ><B CLASS="function" >Parser_end()</B ></TD ><TD > </TD ></TR ></TBODY ></TABLE ></DIV > </P ><P > <DIV CLASS="table" ><A NAME="AEN43564" ></A ><P ><B >表 10. XPathContext class</B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><COL><THEAD ><TR ><TH >Method name</TH ><TH >Function name</TH ><TH >Remark</TH ></TR ></THEAD ><TBODY ><TR ><TD >eval</TD ><TD ><B CLASS="function" >XPathContext_eval()</B ></TD ><TD > </TD ></TR ><TR ><TD >eval_expression</TD ><TD ><B CLASS="function" >XPathContext_eval_expression()</B ></TD ><TD > </TD ></TR ><TR ><TD >register_ns</TD ><TD ><B CLASS="function" >XPathContext_register_ns()</B ></TD ><TD > </TD ></TR ></TBODY ></TABLE ></DIV > </P ><P > <DIV CLASS="table" ><A NAME="AEN43589" ></A ><P ><B >表 11. DomDocumentType class (DomDocumentType : DomNode)</B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><COL><THEAD ><TR ><TH >Method name</TH ><TH >Function name</TH ><TH >Remark</TH ></TR ></THEAD ><TBODY ><TR ><TD >name</TD ><TD ><A HREF="function.domdocumenttype-name.html" ><B CLASS="function" >DomDocumentType_name()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD >entities</TD ><TD ><A HREF="function.domdocumenttype-entities.html" ><B CLASS="function" >DomDocumentType_entities()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD >notations</TD ><TD ><A HREF="function.domdocumenttype-notations.html" ><B CLASS="function" >DomDocumentType_notations()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD >public_id</TD ><TD ><A HREF="function.domdocumenttype-public-id.html" ><B CLASS="function" >DomDocumentType_public_id()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD >system_id</TD ><TD ><A HREF="function.domdocumenttype-system-id.html" ><B CLASS="function" >DomDocumentType_system_id()</B ></A ></TD ><TD > </TD ></TR ><TR ><TD >internal_subset</TD ><TD ><A HREF="function.domdocumenttype-internal-subset.html" ><B CLASS="function" >DomDocumentType_internal_subset()</B ></A ></TD ><TD > </TD ></TR ></TBODY ></TABLE ></DIV > </P ><P > The classes DomDtd is derived from DomNode. DomComment is derived from DomCData. </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="domxml.examples" >范例</A ></H1 ><P > Many examples in this reference require an XML string. Instead of repeating this string in every example, it will be put into a file which will be included by each example. This include file is shown in the following example section. Alternatively, you could create an XML document and read it with <B CLASS="function" >DomDocument_open_file()</B >. </P ><P > <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" CLASS="EXAMPLE" ><TR ><TD ><DIV CLASS="example" ><A NAME="AEN43634" ></A ><P ><B >例 1. Include file example.inc with XML string</B ></P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><code><font color="#000000"> <font color="#0000BB"><?php<br />$xmlstr </font><font color="#007700">= </font><font color="#DD0000">"<?xml version='1.0' standalone='yes'?><br /><!DOCTYPE chapter SYSTEM '/share/sgml/Norman_Walsh/db3xml10/db3xml10.dtd'<br />[ <!ENTITY sp \"spanish\"><br />]><br /><!-- lsfj --><br /><chapter language='en'><title language='en'>Title</title><br /> <para language='ge'><br /> &sp;<br /> <!-- comment --><br /> <informaltable ID='findme' language='&sp;'><br /> <tgroup cols='3'><br /> <tbody><br /> <row><entry>a1</entry><entry<br />morerows='1'>b1</entry><entry>c1</entry></row><br /><row><entry>a2</entry><entry>c2</entry></row><br /> <row><entry>a3</entry><entry>b3</entry><entry>c3</entry></row><br /> </tbody><br /> </tgroup><br /> </informaltable><br /> </para><br /></chapter>"</font><font color="#007700">;<br /></font><font color="#0000BB">?></font> </font> </code></TD ></TR ></TABLE ></DIV ></TD ></TR ></TABLE > </P ></DIV ></DIV ><DIV CLASS="TOC" ><DL ><DT ><B >目录</B ></DT ><DT ><A HREF="function.domattribute-name.html" >DomAttribute->name</A > -- Returns the name of attribute </DT ><DT ><A HREF="function.domattribute-set-value.html" >DomAttribute->set_value</A > -- Sets the value of an attribute </DT ><DT ><A HREF="function.domattribute-specified.html" >DomAttribute->specified</A > -- Checks if attribute is specified </DT ><DT ><A HREF="function.domattribute-value.html" >DomAttribute->value</A > -- Returns value of attribute </DT ><DT ><A HREF="function.domdocument-add-root.html" >DomDocument->add_root</A > -- Adds a root node [deprecated] </DT ><DT ><A HREF="function.domdocument-create-attribute.html" >DomDocument->create_attribute</A > -- Create new attribute</DT ><DT ><A HREF="function.domdocument-create-cdata-section.html" >DomDocument->create_cdata_section</A > -- Create new cdata node</DT ><DT ><A HREF="function.domdocument-create-comment.html" >DomDocument->create_comment</A > -- Create new comment node</DT ><DT ><A HREF="function.domdocument-create-element-ns.html" >DomDocument->create_element_ns</A > -- Create new element node with an associated namespace </DT ><DT ><A HREF="function.domdocument-create-element.html" >DomDocument->create_element</A > -- Create new element node</DT ><DT ><A HREF="function.domdocument-create-entity-reference.html" >DomDocument->create_entity_reference</A > -- Create an entity reference </DT ><DT ><A HREF="function.domdocument-create-processing-instruction.html" >DomDocument->create_processing_instruction</A > -- Creates new PI node</DT ><DT ><A HREF="function.domdocument-create-text-node.html" >DomDocument->create_text_node</A > -- Create new text node</DT ><DT ><A HREF="function.domdocument-doctype.html" >DomDocument->doctype</A > -- Returns the document type </DT ><DT ><A HREF="function.domdocument-document-element.html" >DomDocument->document_element</A > -- Returns root element node </DT ><DT ><A HREF="function.domdocument-dump-file.html" >DomDocument->dump_file</A > -- Dumps the internal XML tree back into a file </DT ><DT ><A HREF="function.domdocument-dump-mem.html" >DomDocument->dump_mem</A > -- Dumps the internal XML tree back into a string </DT ><DT ><A HREF="function.domdocument-get-element-by-id.html" >DomDocument->get_element_by_id</A > -- Searches for an element with a certain id </DT ><DT ><A HREF="function.domdocument-get-elements-by-tagname.html" >DomDocument->get_elements_by_tagname</A > -- Returns array with nodes with given tagname in document or empty array, if not found </DT ><DT ><A HREF="function.domdocument-html-dump-mem.html" >DomDocument->html_dump_mem</A > -- Dumps the internal XML tree back into a string as HTML </DT ><DT ><A HREF="function.domdocument-xinclude.html" >DomDocument->xinclude</A > -- Substitutes XIncludes in a DomDocument Object </DT ><DT ><A HREF="function.domdocumenttype-entities.html" >DomDocumentType->entities()</A > -- Returns list of entities </DT ><DT ><A HREF="function.domdocumenttype-internal-subset.html" >DomDocumentType->internal_subset()</A > -- Returns internal subset </DT ><DT ><A HREF="function.domdocumenttype-name.html" >DomDocumentType->name()</A > -- Returns name of document type </DT ><DT ><A HREF="function.domdocumenttype-notations.html" >DomDocumentType->notations()</A > -- Returns list of notations </DT ><DT ><A HREF="function.domdocumenttype-public-id.html" >DomDocumentType->public_id()</A > -- Returns public id of document type </DT ><DT ><A HREF="function.domdocumenttype-system-id.html" >DomDocumentType->system_id()</A > -- Returns the system id of document type </DT ><DT ><A HREF="function.domelement-get-attribute-node.html" >DomElement->get_attribute_node()</A > -- Returns the node of the given attribute </DT ><DT ><A HREF="function.domelement-get-attribute.html" >DomElement->get_attribute()</A > -- Returns the value of the given attribute </DT ><DT ><A HREF="function.domelement-get-elements-by-tagname.html" >DomElement->get_elements_by_tagname()</A > -- Gets elements by tagname </DT ><DT ><A HREF="function.domelement-has-attribute.html" >DomElement->has_attribute()</A > -- Checks to see if an attribute exists in the current node </DT ><DT ><A HREF="function.domelement-remove-attribute.html" >DomElement->remove_attribute()</A > -- Removes attribute </DT ><DT ><A HREF="function.domelement-set-attribute-node.html" >DomElement->set_attribute_node()</A > -- Adds new attribute </DT ><DT ><A HREF="function.domelement-set-attribute.html" >DomElement->set_attribute()</A > -- Sets the value of an attribute </DT ><DT ><A HREF="function.domelement-tagname.html" >DomElement->tagname()</A > -- Returns the name of the current element </DT ><DT ><A HREF="function.domnode-add-namespace.html" >DomNode->add_namespace</A > -- Adds a namespace declaration to a node </DT ><DT ><A HREF="function.domnode-append-child.html" >DomNode->append_child</A > -- Adds a new child at the end of the children </DT ><DT ><A HREF="function.domnode-append-sibling.html" >DomNode->append_sibling</A > -- Adds new sibling to a node </DT ><DT ><A HREF="function.domnode-attributes.html" >DomNode->attributes</A > -- Returns list of attributes </DT ><DT ><A HREF="function.domnode-child-nodes.html" >DomNode->child_nodes</A > -- Returns children of node </DT ><DT ><A HREF="function.domnode-clone-node.html" >DomNode->clone_node</A > -- Clones a node </DT ><DT ><A HREF="function.domnode-dump-node.html" >DomNode->dump_node</A > -- Dumps a single node </DT ><DT ><A HREF="function.domnode-first-child.html" >DomNode->first_child</A > -- Returns first child of node </DT ><DT ><A HREF="function.domnode-get-content.html" >DomNode->get_content</A > -- Gets content of node </DT ><DT ><A HREF="function.domnode-has-attributes.html" >DomNode->has_attributes</A > -- Checks if node has attributes </DT ><DT ><A HREF="function.domnode-has-child-nodes.html" >DomNode->has_child_nodes</A > -- Checks if node has children </DT ><DT ><A HREF="function.domnode-insert-before.html" >DomNode->insert_before</A > -- Inserts new node as child </DT ><DT ><A HREF="function.domnode-is-blank-node.html" >DomNode->is_blank_node</A > -- Checks if node is blank </DT ><DT ><A HREF="function.domnode-last-child.html" >DomNode->last_child</A > -- Returns last child of node </DT ><DT ><A HREF="function.domnode-next-sibling.html" >DomNode->next_sibling</A > -- Returns the next sibling of node </DT ><DT ><A HREF="function.domnode-node-name.html" >DomNode->node_name</A > -- Returns name of node </DT ><DT ><A HREF="function.domnode-node-type.html" >DomNode->node_type</A > -- Returns type of node </DT ><DT ><A HREF="function.domnode-node-value.html" >DomNode->node_value</A > -- Returns value of a node </DT ><DT ><A HREF="function.domnode-owner-document.html" >DomNode->owner_document</A > -- Returns the document this node belongs to </DT ><DT ><A HREF="function.domnode-parent-node.html" >DomNode->parent_node</A > -- Returns the parent of the node </DT ><DT ><A HREF="function.domnode-prefix.html" >DomNode->prefix</A > -- Returns name space prefix of node </DT ><DT ><A HREF="function.domnode-previous-sibling.html" >DomNode->previous_sibling</A > -- Returns the previous sibling of node </DT ><DT ><A HREF="function.domnode-remove-child.html" >DomNode->remove_child</A > -- Removes child from list of children </DT ><DT ><A HREF="function.domnode-replace-child.html" >DomNode->replace_child</A > -- Replaces a child </DT ><DT ><A HREF="function.domnode-replace-node.html" >DomNode->replace_node</A > -- Replaces node </DT ><DT ><A HREF="function.domnode-set-content.html" >DomNode->set_content</A > -- Sets content of node </DT ><DT ><A HREF="function.domnode-set-name.html" >DomNode->set_name</A > -- Sets name of node </DT ><DT ><A HREF="function.domnode-set-namespace.html" >DomNode->set_namespace</A > -- Sets namespace of a node </DT ><DT ><A HREF="function.domnode-unlink-node.html" >DomNode->unlink_node</A > -- Deletes node </DT ><DT ><A HREF="function.domprocessinginstruction-data.html" >DomProcessingInstruction->data</A > -- Returns the data of ProcessingInstruction node </DT ><DT ><A HREF="function.domprocessinginstruction-target.html" >DomProcessingInstruction->target</A > -- Returns the target of a ProcessingInstruction node </DT ><DT ><A HREF="function.domxsltstylesheet-process.html" >DomXsltStylesheet->process()</A > -- Applies the XSLT-Transformation on a DomDocument Object </DT ><DT ><A HREF="function.domxsltstylesheet-result-dump-file.html" >DomXsltStylesheet->result_dump_file()</A > -- Dumps the result from a XSLT-Transformation into a file </DT ><DT ><A HREF="function.domxsltstylesheet-result-dump-mem.html" >DomXsltStylesheet->result_dump_mem()</A > -- Dumps the result from a XSLT-Transformation back into a string </DT ><DT ><A HREF="function.domxml-new-doc.html" >domxml_new_doc</A > -- Creates new empty XML document </DT ><DT ><A HREF="function.domxml-open-file.html" >domxml_open_file</A > -- Creates a DOM object from an XML file</DT ><DT ><A HREF="function.domxml-open-mem.html" >domxml_open_mem</A > -- Creates a DOM object of an XML document</DT ><DT ><A HREF="function.domxml-version.html" >domxml_version</A > -- Gets the XML library version </DT ><DT ><A HREF="function.domxml-xmltree.html" >domxml_xmltree</A > -- Creates a tree of PHP objects from an XML document </DT ><DT ><A HREF="function.domxml-xslt-stylesheet-doc.html" >domxml_xslt_stylesheet_doc</A > -- Creates a DomXsltStylesheet Object from a DomDocument Object </DT ><DT ><A HREF="function.domxml-xslt-stylesheet-file.html" >domxml_xslt_stylesheet_file</A > -- Creates a DomXsltStylesheet Object from an XSL document in a file </DT ><DT ><A HREF="function.domxml-xslt-stylesheet.html" >domxml_xslt_stylesheet</A > -- Creates a DomXsltStylesheet object from an XSL document in a string </DT ><DT ><A HREF="function.domxml-xslt-version.html" >domxml_xslt_version</A > -- Gets the XSLT library version </DT ><DT ><A HREF="function.xpath-eval-expression.html" >xpath_eval_expression</A > -- Evaluates the XPath Location Path in the given string </DT ><DT ><A HREF="function.xpath-eval.html" >xpath_eval</A > -- Evaluates the XPath Location Path in the given string </DT ><DT ><A HREF="function.xpath-new-context.html" >xpath_new_context</A > -- Creates new xpath context </DT ><DT ><A HREF="function.xpath-register-ns-auto.html" >xpath_register_ns_auto</A > -- Register the given namespace in the passed XPath context </DT ><DT ><A HREF="function.xpath-register-ns.html" >xpath_register_ns</A > -- Register the given namespace in the passed XPath context </DT ><DT ><A HREF="function.xptr-eval.html" >xptr_eval</A > -- Evaluate the XPtr Location Path in the given string </DT ><DT ><A HREF="function.xptr-new-context.html" >xptr_new_context</A > -- Create new XPath Context </DT ></DL ></DIV ></DIV ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.dom-import-simplexml.html" ACCESSKEY="P" >上一页</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >起始页</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.domattribute-name.html" ACCESSKEY="N" >下一页</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >dom_import_simplexml</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="funcref.html" ACCESSKEY="U" >上一级</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >DomAttribute->name</TD ></TR ></TABLE ></DIV ></BODY ></HTML >