<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >DOM 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="scandir" HREF="function.scandir.html"><LINK REL="NEXT" TITLE="DOMAttr->__construct()" HREF="function.dom-domattr-construct.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.scandir.html" ACCESSKEY="P" >上一页</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.dom-domattr-construct.html" ACCESSKEY="N" >下一页</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="reference" ><A NAME="ref.dom" ></A ><DIV CLASS="TITLEPAGE" ><H1 CLASS="title" >XXX. DOM Functions</H1 ><DIV CLASS="PARTINTRO" ><A NAME="AEN37091" ></A ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="dom.intro" >简介</A ></H1 ><P > The DOM extension allows you to operate on XML documents through the DOM API with PHP 5. </P ><P > For PHP 4, use <A HREF="ref.domxml.html" >DOM XML</A >. </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="dom.installation" >安装</A ></H1 ><P >本扩展模块作为 PHP 内核的一部分,无需安装即可使用。</P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="dom.classes" >预定义类</A ></H1 ><P > The API of the module follows the <A HREF="http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html" TARGET="_top" >DOM Level 3</A > 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. </P ><P > This module defines a number of classes, which are explained in the following tables. Classes with an equivalent in the DOM standard are named DOMxxx. </P ><DIV CLASS="section" ><H2 CLASS="section" ><A NAME="dom.class.domattr" ><B CLASS="classname" >DOMAttr</B ></A ></H2 ><P > Extends <B CLASS="classname" >DOMNode</B >. The <B CLASS="classname" >DOMAttr</B > interface represents an attribute in an <B CLASS="classname" >DOMElement</B > object. </P ><DIV CLASS="section" ><H3 CLASS="section" ><A NAME="dom.class.domattr.constructor" >构造函数</A ></H3 ><P ></P ><UL ><LI ><P ><A HREF="function.dom-domattr-construct.html" >DOMAttr->__construct()</A > - construct a new DOMAttr object</P ></LI ></UL ></DIV ><DIV CLASS="section" ><H3 CLASS="section" ><A NAME="dom.class.domattr.methods" >方法</A ></H3 ><P ></P ><UL ><LI ><P ><A HREF="function.dom-domattr-isid.html" >DOMAttr->isId()</A > - Checks if attribute is a defined ID</P ></LI ></UL ></DIV ><DIV CLASS="section" ><H3 CLASS="section" ><A NAME="dom.class.domattr.properties" >属性</A ></H3 ><DIV CLASS="table" ><A NAME="AEN37126" ></A ><P ><B >表 1. </B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><COL><COL><THEAD ><TR ><TH >Name</TH ><TH >Type</TH ><TH >Read-only</TH ><TH >Description</TH ></TR ></THEAD ><TBODY ><TR ><TD >name</TD ><TD >string</TD ><TD >yes</TD ><TD >The name of the attribute</TD ></TR ><TR ><TD >ownerElement</TD ><TD >DOMElement</TD ><TD >yes</TD ><TD >The element which contains the attribute</TD ></TR ><TR ><TD >schemaTypeInfo</TD ><TD >bool</TD ><TD >yes</TD ><TD >Not implemented yet, always return <TT CLASS="constant" ><B >NULL</B ></TT ></TD ></TR ><TR ><TD >specified</TD ><TD >bool</TD ><TD >yes</TD ><TD >Not implemented yet, always return <TT CLASS="constant" ><B >NULL</B ></TT ></TD ></TR ><TR ><TD >value</TD ><TD >string</TD ><TD >no</TD ><TD >The value of the attribute</TD ></TR ></TBODY ></TABLE ></DIV ></DIV ></DIV ><DIV CLASS="section" ><H2 CLASS="section" ><A NAME="dom.class.domcharacterdata" ><B CLASS="classname" >DOMCharacterData</B ></A ></H2 ><P > Extends <B CLASS="classname" >DOMNode</B >. </P ><DIV CLASS="section" ><H3 CLASS="section" ><A NAME="dom.class.domcharacterdata.methods" >方法</A ></H3 ><P ></P ><UL ><LI ><P ><A HREF="function.dom-domcharacterdata-appenddata.html" >DOMCharacterData->appendData()</A > - Append a string to the end of the character data of the node</P ></LI ><LI ><P ><A HREF="function.dom-domcharacterdata-deletedata.html" >DOMCharacterData->deleteData()</A > - Remove a range of characters from the node</P ></LI ><LI ><P ><A HREF="function.dom-domcharacterdata-insertdata.html" >DOMCharacterData->insertData()</A > - Insert a string at the specified 16-bit unit offset</P ></LI ><LI ><P ><A HREF="function.dom-domcharacterdata-replacedata.html" >DOMCharacterData->replaceData()</A > - Replace a substring within the DOMCharacterData node</P ></LI ><LI ><P ><A HREF="function.dom-domcharacterdata-substringdata.html" >DOMCharacterData->substringData()</A > - Extracts a range of data from the node</P ></LI ></UL ></DIV ><DIV CLASS="section" ><H3 CLASS="section" ><A NAME="dom.class.domcharacterdata.properties" >属性</A ></H3 ><DIV CLASS="table" ><A NAME="AEN37188" ></A ><P ><B >表 2. </B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><COL><COL><THEAD ><TR ><TH >Name</TH ><TH >Type</TH ><TH >Read-only</TH ><TH >Description</TH ></TR ></THEAD ><TBODY ><TR ><TD >data</TD ><TD >string</TD ><TD >no</TD ><TD >The contents of the node</TD ></TR ><TR ><TD >length</TD ><TD >int</TD ><TD >yes</TD ><TD >The length of the contents</TD ></TR ></TBODY ></TABLE ></DIV ></DIV ></DIV ><DIV CLASS="section" ><H2 CLASS="section" ><A NAME="dom.class.domcomment" ><B CLASS="classname" >DOMComment</B ></A ></H2 ><P > Extends <B CLASS="classname" >DOMCharacterData</B >. </P ><DIV CLASS="section" ><H3 CLASS="section" ><A NAME="dom.class.domcomment.constructor" >构造函数</A ></H3 ><P ></P ><UL ><LI ><P ><A HREF="function.dom-domcomment-construct.html" >DOMComment->__construct()</A > - construct a new DOMComment object</P ></LI ></UL ></DIV ></DIV ><DIV CLASS="section" ><H2 CLASS="section" ><A NAME="dom.class.domdocument" ><B CLASS="classname" >DOMDocument</B ></A ></H2 ><P > Extends <B CLASS="classname" >DOMNode</B >. </P ><DIV CLASS="section" ><H3 CLASS="section" ><A NAME="dom.class.domdocument.constructor" >构造函数</A ></H3 ><P ></P ><UL ><LI ><P ><A HREF="function.dom-domdocument-construct.html" >DOMDocument->__construct()</A > - construct a new DOMDocument object</P ></LI ></UL ></DIV ><DIV CLASS="section" ><H3 CLASS="section" ><A NAME="dom.class.domdocument.methods" >方法</A ></H3 ><P ></P ><UL ><LI ><P ><A HREF="function.dom-domdocument-createattribute.html" >DOMDocument->createAttribute()</A > - Create new attribute</P ></LI ><LI ><P ><A HREF="function.dom-domdocument-createattributens.html" >DOMDocument->createAttributeNS()</A > - Create new attribute node with an associated namespace</P ></LI ><LI ><P ><A HREF="function.dom-domdocument-createcdatasection.html" >DOMDocument->createCDATASection()</A > - Create new cdata node</P ></LI ><LI ><P ><A HREF="function.dom-domdocument-createcomment.html" >DOMDocument->createComment()</A > - Create new comment node</P ></LI ><LI ><P ><A HREF="function.dom-domdocument-createdocumentfragment.html" >DOMDocument->createDocumentFragment()</A > - Create new document fragment</P ></LI ><LI ><P ><A HREF="function.dom-domdocument-createelement.html" >DOMDocument->createElement()</A > - Create new element node</P ></LI ><LI ><P ><A HREF="function.dom-domdocument-createelementns.html" >DOMDocument->createElementNS()</A > - Create new element node with an associated namespace</P ></LI ><LI ><P ><A HREF="function.dom-domdocument-createentityreference.html" >DOMDocument->createEntityReference()</A > - Create new entity reference node</P ></LI ><LI ><P ><A HREF="function.dom-domdocument-createprocessinginstruction.html" >DOMDocument->createProcessingInstruction()</A > - Creates new PI node</P ></LI ><LI ><P ><A HREF="function.dom-domdocument-createtextnode.html" >DOMDocument->createTextNode()</A > - Create new text node</P ></LI ><LI ><P ><A HREF="function.dom-domdocument-getelementbyid.html" >DOMDocument->getElementById()</A > - Searches for an element with a certain id</P ></LI ><LI ><P ><A HREF="function.dom-domdocument-getelementsbytagname.html" >DOMDocument->getElementsByTagName()</A > - Searches for all elements with given tag name</P ></LI ><LI ><P ><A HREF="function.dom-domdocument-getelementsbytagnamens.html" >DOMDocument->getElementsByTagNameNS()</A > - Searches for all elements with given tag name in specified namespace</P ></LI ><LI ><P ><A HREF="function.dom-domdocument-importnode.html" >DOMDocument->importNode()</A > - Import node into current document</P ></LI ><LI ><P ><A HREF="function.dom-domdocument-load.html" >DOMDocument->load()</A > - Load XML from a file</P ></LI ><LI ><P ><A HREF="function.dom-domdocument-loadhtml.html" >DOMDocument->loadHTML()</A > - Load HTML from a string</P ></LI ><LI ><P ><A HREF="function.dom-domdocument-loadhtmlfile.html" >DOMDocument->loadHTMLFile()</A > - Load HTML from a file</P ></LI ><LI ><P ><A HREF="function.dom-domdocument-loadxml.html" >DOMDocument->loadXML()</A > - Load XML from a string</P ></LI ><LI ><P ><A HREF="function.dom-domdocument-normalizedocument.html" >DOMDocument->normalizeDocument()</A > - Normalizes the document</P ></LI ><LI ><P ><A HREF="function.dom-domdocument-relaxngvalidate.html" >DOMDocument->relaxNGValidate()</A > - Performs relaxNG validation on the document</P ></LI ><LI ><P ><A HREF="function.dom-domdocument-relaxngvalidatesource.html" >DOMDocument->relaxNGValidateSource()</A > - Performs relaxNG validation on the document</P ></LI ><LI ><P ><A HREF="function.dom-domdocument-registernodeclass.html" >DOMDocument->registerNodeClass()</A > - Register extended class used to create base node type (not DOM standard)</P ></LI ><LI ><P ><A HREF="function.dom-domdocument-save.html" >DOMDocument->save()</A > - Dumps the internal XML tree back into a file</P ></LI ><LI ><P ><A HREF="function.dom-domdocument-savehtml.html" >DOMDocument->saveHTML()</A > - Dumps the internal document into a string using HTML formatting</P ></LI ><LI ><P ><A HREF="function.dom-domdocument-savehtmlfile.html" >DOMDocument->saveHTMLFile()</A > - Dumps the internal document back into a file using HTML formatting</P ></LI ><LI ><P ><A HREF="function.dom-domdocument-savexml.html" >DOMDocument->saveXML()</A > - Dumps the internal XML tree back into a string</P ></LI ><LI ><P ><A HREF="function.dom-domdocument-schemavalidate.html" >DOMDocument->schemaValidate()</A > - Validates a document based on a schema</P ></LI ><LI ><P ><A HREF="function.dom-domdocument-schemavalidatesource.html" >DOMDocument->schemaValidateSource()</A > - Validates a document based on a schema</P ></LI ><LI ><P ><A HREF="function.dom-domdocument-validate.html" >DOMDocument->validate()</A > - Validates the document based on its DTD</P ></LI ><LI ><P ><A HREF="function.dom-domdocument-xinclude.html" >DOMDocument->xinclude()</A > - Substitutes XIncludes in a DOMDocument Object</P ></LI ></UL ></DIV ><DIV CLASS="section" ><H3 CLASS="section" ><A NAME="dom.class.domdocument.properties" >属性</A ></H3 ><DIV CLASS="table" ><A NAME="AEN37325" ></A ><P ><B >表 3. </B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><COL><COL><THEAD ><TR ><TH >Name</TH ><TH >Type</TH ><TH >Read-only</TH ><TH >Description</TH ></TR ></THEAD ><TBODY ><TR ><TD >actualEncoding</TD ><TD >string</TD ><TD >yes</TD ><TD > </TD ></TR ><TR ><TD >config</TD ><TD >DOMConfiguration</TD ><TD >yes</TD ><TD > </TD ></TR ><TR ><TD >doctype</TD ><TD >DOMDocumentType</TD ><TD >yes</TD ><TD > The Document Type Declaration associated with this document. </TD ></TR ><TR ><TD >documentElement</TD ><TD >DOMElement</TD ><TD >yes</TD ><TD > This is a convenience attribute that allows direct access to the child node that is the document element of the document. </TD ></TR ><TR ><TD >documentURI</TD ><TD >string</TD ><TD >no</TD ><TD > The location of the document or <TT CLASS="constant" ><B >NULL</B ></TT > if undefined. </TD ></TR ><TR ><TD >encoding</TD ><TD >string</TD ><TD >no</TD ><TD > </TD ></TR ><TR ><TD >formatOutput</TD ><TD >bool</TD ><TD >no</TD ><TD > </TD ></TR ><TR ><TD >implementation</TD ><TD >DOMImplementation</TD ><TD >yes</TD ><TD > The <B CLASS="classname" >DOMImplementation</B > object that handles this document. </TD ></TR ><TR ><TD >preserveWhiteSpace</TD ><TD >bool</TD ><TD >no</TD ><TD >Do not remove redundant white space. Default to <TT CLASS="constant" ><B >TRUE</B ></TT >.</TD ></TR ><TR ><TD >recover</TD ><TD >bool</TD ><TD >no</TD ><TD > </TD ></TR ><TR ><TD >resolveExternals</TD ><TD >bool</TD ><TD >no</TD ><TD > Set it to <TT CLASS="constant" ><B >TRUE</B ></TT > to load external entities from a doctype declaration. This is useful for including character entities in your XML document. </TD ></TR ><TR ><TD >standalone</TD ><TD >bool</TD ><TD >no</TD ><TD > </TD ></TR ><TR ><TD >strictErrorChecking</TD ><TD >bool</TD ><TD >no</TD ><TD >Throws DOMException on errors. Default to <TT CLASS="constant" ><B >TRUE</B ></TT >.</TD ></TR ><TR ><TD >substituteEntities</TD ><TD >bool</TD ><TD >no</TD ><TD > </TD ></TR ><TR ><TD >validateOnParse</TD ><TD >bool</TD ><TD >no</TD ><TD >Loads and validates against the DTD. Default to <TT CLASS="constant" ><B >FALSE</B ></TT >.</TD ></TR ><TR ><TD >version</TD ><TD >string</TD ><TD >no</TD ><TD > </TD ></TR ><TR ><TD >xmlEncoding</TD ><TD >string</TD ><TD >yes</TD ><TD > An attribute specifying, as part of the XML declaration, the encoding of this document. This is <TT CLASS="constant" ><B >NULL</B ></TT > when unspecified or when it is not known, such as when the Document was created in memory. </TD ></TR ><TR ><TD >xmlStandalone</TD ><TD >bool</TD ><TD >no</TD ><TD > An attribute specifying, as part of the XML declaration, whether this document is standalone. This is <TT CLASS="constant" ><B >FALSE</B ></TT > when unspecified. </TD ></TR ><TR ><TD >xmlVersion</TD ><TD >string</TD ><TD >no</TD ><TD > An attribute specifying, as part of the XML declaration, the version number of this document. If there is no declaration and if this document supports the "XML" feature, the value is "1.0". </TD ></TR ></TBODY ></TABLE ></DIV ></DIV ></DIV ><DIV CLASS="section" ><H2 CLASS="section" ><A NAME="dom.class.domdocumentfragment" ><B CLASS="classname" >DOMDocumentFragment</B ></A ></H2 ><P > Extends <B CLASS="classname" >DOMNode</B >. </P ><DIV CLASS="section" ><H3 CLASS="section" ><A NAME="dom.class.domdocumentfragment.methods" >方法</A ></H3 ><P ></P ><UL ><LI ><P ><A HREF="function.dom-domdocumentfragment-appendxml.html" >DOMDocumentFragment->appendXML()</A > - Append raw XML data (not DOM standard)</P ></LI ></UL ></DIV ></DIV ><DIV CLASS="section" ><H2 CLASS="section" ><A NAME="dom.class.domdocumenttype" ><B CLASS="classname" >DOMDocumentType</B ></A ></H2 ><P > Extends <B CLASS="classname" >DOMNode</B > </P ><P > Each <B CLASS="classname" >DOMDocument</B > has a <TT CLASS="literal" >doctype</TT > attribute whose value is either <TT CLASS="constant" ><B >NULL</B ></TT > or a <B CLASS="classname" >DOMDocumentType</B > object. </P ><DIV CLASS="section" ><H3 CLASS="section" ><A NAME="dom.class.domdocumenttype.properties" >属性</A ></H3 ><DIV CLASS="table" ><A NAME="AEN37461" ></A ><P ><B >表 4. </B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><COL><COL><THEAD ><TR ><TH >Name</TH ><TH >Type</TH ><TH >Read-only</TH ><TH >Description</TH ></TR ></THEAD ><TBODY ><TR ><TD >publicId</TD ><TD >string</TD ><TD >yes</TD ><TD >The public identifier of the external subset.</TD ></TR ><TR ><TD >systemId</TD ><TD >string</TD ><TD >yes</TD ><TD >The system identifier of the external subset. This may be an absolute URI or not.</TD ></TR ><TR ><TD >name</TD ><TD >string</TD ><TD >yes</TD ><TD >The name of DTD; i.e., the name immediately following the <TT CLASS="literal" >DOCTYPE</TT > keyword.</TD ></TR ><TR ><TD >entities</TD ><TD >DOMNamedNodeMap</TD ><TD >yes</TD ><TD > A <B CLASS="classname" >DOMNamedNodeMap</B > containing the general entities, both external and internal, declared in the DTD. </TD ></TR ><TR ><TD >notations</TD ><TD >DOMNamedNodeMap</TD ><TD >yes</TD ><TD > A <B CLASS="classname" >DOMNamedNodeMap</B > containing the notations declared in the DTD. </TD ></TR ><TR ><TD >internalSubset</TD ><TD >string</TD ><TD >yes</TD ><TD > The internal subset as a string, or null if there is none. This is does not contain the delimiting square brackets. </TD ></TR ></TBODY ></TABLE ></DIV ></DIV ></DIV ><DIV CLASS="section" ><H2 CLASS="section" ><A NAME="dom.class.domelement" ><B CLASS="classname" >DOMElement</B ></A ></H2 ><P > Extends <B CLASS="classname" >DOMNode</B >. </P ><DIV CLASS="section" ><H3 CLASS="section" ><A NAME="dom.class.domelement.constructor" >构造函数</A ></H3 ><P ></P ><UL ><LI ><P ><A HREF="function.dom-domelement-construct.html" >DOMElement->__construct()</A > - construct a new DOMElement object</P ></LI ></UL ></DIV ><DIV CLASS="section" ><H3 CLASS="section" ><A NAME="dom.class.domelement.methods" >方法</A ></H3 ><P ></P ><UL ><LI ><P ><A HREF="function.dom-domelement-getattribute.html" >DOMElement->getAttribute()</A > - Returns value of attribute</P ></LI ><LI ><P ><A HREF="function.dom-domelement-getattributenode.html" >DOMElement->getAttributeNode()</A > - Returns attribute node</P ></LI ><LI ><P ><A HREF="function.dom-domelement-getattributenodens.html" >DOMElement->getAttributeNodeNS()</A > - Returns attribute node</P ></LI ><LI ><P ><A HREF="function.dom-domelement-getattributens.html" >DOMElement->getAttributeNS()</A > - Returns value of attribute</P ></LI ><LI ><P ><A HREF="function.dom-domelement-getelementsbytagname.html" >DOMElement->getElementsByTagName()</A > - Gets elements by tagname</P ></LI ><LI ><P ><A HREF="function.dom-domelement-getelementsbytagnamens.html" >DOMElement->getElementsByTagNameNS()</A > - Get elements by namespaceURI and localName</P ></LI ><LI ><P ><A HREF="function.dom-domelement-hasattribute.html" >DOMElement->hasAttribute()</A > - Checks to see if attribute exists</P ></LI ><LI ><P ><A HREF="function.dom-domelement-hasattributens.html" >DOMElement->hasAttributeNS()</A > - Checks to see if attribute exists</P ></LI ><LI ><P ><A HREF="function.dom-domelement-removeattribute.html" >DOMElement->removeAttribute()</A > - Removes attribute</P ></LI ><LI ><P ><A HREF="function.dom-domelement-removeattributenode.html" >DOMElement->removeAttributeNode()</A > - Removes attribute</P ></LI ><LI ><P ><A HREF="function.dom-domelement-removeattributens.html" >DOMElement->removeAttributeNS()</A > - Removes attribute</P ></LI ><LI ><P ><A HREF="function.dom-domelement-setattribute.html" >DOMElement->setAttribute()</A > - Adds new attribute</P ></LI ><LI ><P ><A HREF="function.dom-domelement-setattributenode.html" >DOMElement->setAttributeNode()</A > - Adds new attribute node to element</P ></LI ><LI ><P ><A HREF="function.dom-domelement-setattributenodens.html" >DOMElement->setAttributeNodeNS()</A > - Adds new attribute node to element</P ></LI ><LI ><P ><A HREF="function.dom-domelement-setattributens.html" >DOMElement->setAttributeNS()</A > - Adds new attribute</P ></LI ><LI ><P ><A HREF="function.dom-domelement-setidattribute.html" >DOMElement->setIdAttribute()</A > - Declares the ID attribute</P ></LI ><LI ><P ><A HREF="function.dom-domelement-setidattributenode.html" >DOMElement->setIdAttributeNode()</A > - Declares the ID attribute</P ></LI ><LI ><P ><A HREF="function.dom-domelement-setidattributens.html" >DOMElement->setIdAttributeNS()</A > - Declares the ID attribute</P ></LI ></UL ></DIV ><DIV CLASS="section" ><H3 CLASS="section" ><A NAME="dom.class.domelement.properties" >属性</A ></H3 ><DIV CLASS="table" ><A NAME="AEN37574" ></A ><P ><B >表 5. </B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><COL><COL><THEAD ><TR ><TH >Name</TH ><TH >Type</TH ><TH >Read-only</TH ><TH >Description</TH ></TR ></THEAD ><TBODY ><TR ><TD >schemaTypeInfo</TD ><TD >bool</TD ><TD >yes</TD ><TD >Not implemented yet, always return <TT CLASS="constant" ><B >NULL</B ></TT ></TD ></TR ><TR ><TD >tagName</TD ><TD >string</TD ><TD >yes</TD ><TD >The element name</TD ></TR ></TBODY ></TABLE ></DIV ></DIV ></DIV ><DIV CLASS="section" ><H2 CLASS="section" ><A NAME="dom.class.domentity" ><B CLASS="classname" >DOMEntity</B ></A ></H2 ><P > Extends <B CLASS="classname" >DOMNode</B > </P ><P > This interface represents a known entity, either parsed or unparsed, in an XML document. </P ><DIV CLASS="section" ><H3 CLASS="section" ><A NAME="dom.class.domentity.properties" >属性</A ></H3 ><DIV CLASS="table" ><A NAME="AEN37603" ></A ><P ><B >表 6. </B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><COL><COL><THEAD ><TR ><TH >Name</TH ><TH >Type</TH ><TH >Read-only</TH ><TH >Description</TH ></TR ></THEAD ><TBODY ><TR ><TD >publicId</TD ><TD >string</TD ><TD >yes</TD ><TD > The public identifier associated with the entity if specified, and <TT CLASS="constant" ><B >NULL</B ></TT > otherwise. </TD ></TR ><TR ><TD >systemId</TD ><TD >string</TD ><TD >yes</TD ><TD > The system identifier associated with the entity if specified, and <TT CLASS="constant" ><B >NULL</B ></TT > otherwise. This may be an absolute URI or not. </TD ></TR ><TR ><TD >notationName</TD ><TD >string</TD ><TD >yes</TD ><TD > For unparsed entities, the name of the notation for the entity. For parsed entities, this is <TT CLASS="constant" ><B >NULL</B ></TT >. </TD ></TR ><TR ><TD >actualEncoding</TD ><TD >string</TD ><TD >no</TD ><TD > An attribute specifying the encoding used for this entity at the time of parsing, when it is an external parsed entity. This is <TT CLASS="constant" ><B >NULL</B ></TT > if it an entity from the internal subset or if it is not known. </TD ></TR ><TR ><TD >encoding</TD ><TD >string</TD ><TD >yes</TD ><TD > An attribute specifying, as part of the text declaration, the encoding of this entity, when it is an external parsed entity. This is <TT CLASS="constant" ><B >NULL</B ></TT > otherwise. </TD ></TR ><TR ><TD >version</TD ><TD >string</TD ><TD >yes</TD ><TD > An attribute specifying, as part of the text declaration, the version number of this entity, when it is an external parsed entity. This is <TT CLASS="constant" ><B >NULL</B ></TT > otherwise. </TD ></TR ></TBODY ></TABLE ></DIV ></DIV ></DIV ><DIV CLASS="section" ><H2 CLASS="section" ><A NAME="dom.class.domentityreference" ><B CLASS="classname" >DOMEntityReference</B ></A ></H2 ><P > Extends <B CLASS="classname" >DOMNode</B >. </P ><DIV CLASS="section" ><H3 CLASS="section" ><A NAME="dom.class.domentityreference.constructor" >构造函数</A ></H3 ><P ></P ><UL ><LI ><P ><A HREF="function.dom-domentityreference-construct.html" >DOMEntityReference->__construct()</A > - construct a new DOMEntityReference object</P ></LI ></UL ></DIV ></DIV ><DIV CLASS="section" ><H2 CLASS="section" ><A NAME="dom.class.domexception" ><B CLASS="classname" >DOMException</B ></A ></H2 ><P > DOM operations raise exceptions under particular circumstances, i.e., when an operation is impossible to perform for logical reasons. </P ><P > See also <A HREF="language.exceptions.html" >µÚ 20 章</A >. </P ><DIV CLASS="section" ><H3 CLASS="section" ><A NAME="dom.class.domexception.properties" >属性</A ></H3 ><DIV CLASS="table" ><A NAME="AEN37668" ></A ><P ><B >表 7. </B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><COL><COL><THEAD ><TR ><TH >Name</TH ><TH >Type</TH ><TH >Read-only</TH ><TH >Description</TH ></TR ></THEAD ><TBODY ><TR ><TD >code</TD ><TD >int</TD ><TD >yes</TD ><TD >An integer indicating the type of error generated</TD ></TR ></TBODY ></TABLE ></DIV ></DIV ></DIV ><DIV CLASS="section" ><H2 CLASS="section" ><A NAME="dom.class.domimplementation" ><B CLASS="classname" >DOMImplementation</B ></A ></H2 ><P > The <B CLASS="classname" >DOMImplementation</B > interface provides a number of methods for performing operations that are independent of any particular instance of the document object model. </P ><DIV CLASS="section" ><H3 CLASS="section" ><A NAME="dom.class.domimplementation.constructor" >构造函数</A ></H3 ><P ></P ><UL ><LI ><P ><A HREF="function.dom-domimplementation-construct.html" >DOMImplementation->__construct()</A > - construct a new DOMImplementation object</P ></LI ></UL ></DIV ><DIV CLASS="section" ><H3 CLASS="section" ><A NAME="dom.class.domimplementation.methods" >方法</A ></H3 ><P ></P ><UL ><LI ><P ><A HREF="function.dom-domimplementation-createdocument.html" >DOMImplementation->createDocument()</A > - Creates a DOM Document object of the specified type with its document element</P ></LI ><LI ><P ><A HREF="function.dom-domimplementation-createdocumenttype.html" >DOMImplementation->createDocumentType()</A > - Creates an empty DOMDocumentType object</P ></LI ><LI ><P ><A HREF="function.dom-domimplementation-hasfeature.html" >DOMImplementation->hasFeature()</A > - Test if the DOM implementation implements a specific feature</P ></LI ></UL ></DIV ></DIV ><DIV CLASS="section" ><H2 CLASS="section" ><A NAME="dom.class.domnamednodemap" ><B CLASS="classname" >DOMNamedNodeMap</B ></A ></H2 ><DIV CLASS="section" ><H3 CLASS="section" ><A NAME="dom.class.domnamednodemap.methods" >方法</A ></H3 ><P ></P ><UL ><LI ><P ><A HREF="function.dom-domnamednodemap-getnameditem.html" >DOMNamedNodeMap->getNamedItem()</A > - Retrieves a node specified by name</P ></LI ><LI ><P ><A HREF="function.dom-domnamednodemap-getnameditemns.html" >DOMNamedNodeMap->getNamedItemNS()</A > - Retrieves a node specified by local name and namespace URI</P ></LI ><LI ><P ><A HREF="function.dom-domnamednodemap-item.html" >DOMNamedNodeMap->item()</A > - Retrieves a node specified by index</P ></LI ></UL ></DIV ></DIV ><DIV CLASS="section" ><H2 CLASS="section" ><A NAME="dom.class.domnode" ><B CLASS="classname" >DOMNode</B ></A ></H2 ><DIV CLASS="section" ><H3 CLASS="section" ><A NAME="dom.class.domnode.methods" >方法</A ></H3 ><P ></P ><UL ><LI ><P ><A HREF="function.dom-domnode-appendchild.html" >DOMNode->appendChild()</A > - Adds new child at the end of the children</P ></LI ><LI ><P ><A HREF="function.dom-domnode-clonenode.html" >DOMNode->cloneNode()</A > - Clones a node</P ></LI ><LI ><P ><A HREF="function.dom-domnode-hasattributes.html" >DOMNode->hasAttributes()</A > - Checks if node has attributes</P ></LI ><LI ><P ><A HREF="function.dom-domnode-haschildnodes.html" >DOMNode->hasChildNodes()</A > - Checks if node has children</P ></LI ><LI ><P ><A HREF="function.dom-domnode-insertbefore.html" >DOMNode->insertBefore()</A > - Adds a new child before a reference node</P ></LI ><LI ><P ><A HREF="function.dom-domnode-isdefaultnamespace.html" >DOMNode->isDefaultNamespace()</A > - Checks if the specified namespaceURI is the default namespace</P ></LI ><LI ><P ><A HREF="function.dom-domnode-issamenode.html" >DOMNode->isSameNode()</A > - Indicates if two nodes are the same node</P ></LI ><LI ><P ><A HREF="function.dom-domnode-issupported.html" >DOMNode->isSupported()</A > - Checks if feature is supported for specified version</P ></LI ><LI ><P ><A HREF="function.dom-domnode-lookupnamespaceuri.html" >DOMNode->lookupNamespaceURI()</A > - Returns namespace URI of the node based on the prefix</P ></LI ><LI ><P ><A HREF="function.dom-domnode-lookupprefix.html" >DOMNode->lookupPrefix()</A > - Returns name space prefix of the node based on namespaceURI</P ></LI ><LI ><P ><A HREF="function.dom-domnode-normalize.html" >DOMNode->normalize()</A > - Normalizes the node</P ></LI ><LI ><P ><A HREF="function.dom-domnode-removechild.html" >DOMNode->removeChild()</A > - Removes child from list of children</P ></LI ><LI ><P ><A HREF="function.dom-domnode-replacechild.html" >DOMNode->replaceChild()</A > - Replaces a child</P ></LI ></UL ></DIV ><DIV CLASS="section" ><H3 CLASS="section" ><A NAME="dom.class.domnode.properties" >属性</A ></H3 ><DIV CLASS="table" ><A NAME="AEN37768" ></A ><P ><B >表 8. </B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><COL><COL><THEAD ><TR ><TH >Name</TH ><TH >Type</TH ><TH >Read-only</TH ><TH >Description</TH ></TR ></THEAD ><TBODY ><TR ><TD >nodeName</TD ><TD >string</TD ><TD >yes</TD ><TD >Returns the most accurate name for the current node type</TD ></TR ><TR ><TD >nodeValue</TD ><TD >string</TD ><TD >no</TD ><TD >The value of this node, depending on its type.</TD ></TR ><TR ><TD >nodeType</TD ><TD >int</TD ><TD >yes</TD ><TD >Gets the type of the node. One of the predefined XML_xxx_NODE constants</TD ></TR ><TR ><TD >parentNode</TD ><TD >DOMNode</TD ><TD >yes</TD ><TD >The parent of this node.</TD ></TR ><TR ><TD >childNodes</TD ><TD >DOMNodeList</TD ><TD >yes</TD ><TD > A <B CLASS="classname" >DOMNodeList</B > that contains all children of this node. If there are no children, this is an empty <B CLASS="classname" >DOMNodeList</B >. </TD ></TR ><TR ><TD >firstChild</TD ><TD >DOMNode</TD ><TD >yes</TD ><TD > The first child of this node. If there is no such node, this returns <TT CLASS="constant" ><B >NULL</B ></TT >. </TD ></TR ><TR ><TD >lastChild</TD ><TD >DOMNode</TD ><TD >yes</TD ><TD > The last child of this node. If there is no such node, this returns <TT CLASS="constant" ><B >NULL</B ></TT >. </TD ></TR ><TR ><TD >previousSibling</TD ><TD >DOMNode</TD ><TD >yes</TD ><TD > The node immediately preceding this node. If there is no such node, this returns <TT CLASS="constant" ><B >NULL</B ></TT >. </TD ></TR ><TR ><TD >nextSibling</TD ><TD >DOMNode</TD ><TD >yes</TD ><TD > The node immediately following this node. If there is no such node, this returns <TT CLASS="constant" ><B >NULL</B ></TT >. </TD ></TR ><TR ><TD >attributes</TD ><TD >DOMNamedNodeMap</TD ><TD >yes</TD ><TD > A <B CLASS="classname" >DOMNamedNodeMap</B > containing the attributes of this node (if it is a <B CLASS="classname" >DOMElement</B >) or <TT CLASS="constant" ><B >NULL</B ></TT > otherwise. </TD ></TR ><TR ><TD >ownerDocument</TD ><TD >DOMDocument</TD ><TD >yes</TD ><TD > The <B CLASS="classname" >DOMDocument</B > object associated with this node. </TD ></TR ><TR ><TD >namespaceURI</TD ><TD >string</TD ><TD >yes</TD ><TD > The namespace URI of this node, or <TT CLASS="constant" ><B >NULL</B ></TT > if it is unspecified. </TD ></TR ><TR ><TD >prefix</TD ><TD >string</TD ><TD >no</TD ><TD > The namespace prefix of this node, or <TT CLASS="constant" ><B >NULL</B ></TT > if it is unspecified. </TD ></TR ><TR ><TD >localName</TD ><TD >string</TD ><TD >yes</TD ><TD > Returns the local part of the qualified name of this node. </TD ></TR ><TR ><TD >baseURI</TD ><TD >string</TD ><TD >yes</TD ><TD > The absolute base URI of this node or <TT CLASS="constant" ><B >NULL</B ></TT > if the implementation wasn't able to obtain an absolute URI. </TD ></TR ><TR ><TD >textContent</TD ><TD >string</TD ><TD >no</TD ><TD > This attribute returns the text content of this node and its descendants. </TD ></TR ></TBODY ></TABLE ></DIV ></DIV ></DIV ><DIV CLASS="section" ><H2 CLASS="section" ><A NAME="dom.class.domnodelist" ><B CLASS="classname" >DOMNodeList</B ></A ></H2 ><P > </P ><DIV CLASS="section" ><H3 CLASS="section" ><A NAME="dom.class.domnodelist.methods" >方法</A ></H3 ><P ></P ><UL ><LI ><P ><A HREF="function.dom-domnodelist-item.html" >DOMNodelist->item()</A > - Retrieves a node specified by index</P ></LI ></UL ></DIV ><DIV CLASS="section" ><H3 CLASS="section" ><A NAME="dom.class.domnodelist.properties" >属性</A ></H3 ><DIV CLASS="table" ><A NAME="AEN37883" ></A ><P ><B >表 9. </B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><COL><COL><THEAD ><TR ><TH >Name</TH ><TH >Type</TH ><TH >Read-only</TH ><TH >Description</TH ></TR ></THEAD ><TBODY ><TR ><TD >length</TD ><TD >int</TD ><TD >yes</TD ><TD > The number of nodes in the list. The range of valid child node indices is 0 to <TT CLASS="literal" >length - 1</TT > inclusive. </TD ></TR ></TBODY ></TABLE ></DIV ></DIV ></DIV ><DIV CLASS="section" ><H2 CLASS="section" ><A NAME="dom.class.domnotation" ><B CLASS="classname" >DOMNotation</B ></A ></H2 ><P > Extends <B CLASS="classname" >DOMNode</B > </P ><DIV CLASS="section" ><H3 CLASS="section" ><A NAME="dom.class.domnotation.properties" >属性</A ></H3 ><DIV CLASS="table" ><A NAME="AEN37906" ></A ><P ><B >表 10. </B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><COL><COL><THEAD ><TR ><TH >Name</TH ><TH >Type</TH ><TH >Read-only</TH ><TH >Description</TH ></TR ></THEAD ><TBODY ><TR ><TD >publicId</TD ><TD >string</TD ><TD >yes</TD ><TD > </TD ></TR ><TR ><TD >systemId</TD ><TD >string</TD ><TD >yes</TD ><TD > </TD ></TR ></TBODY ></TABLE ></DIV ></DIV ></DIV ><DIV CLASS="section" ><H2 CLASS="section" ><A NAME="dom.class.domprocessinginstruction" ><B CLASS="classname" >DOMProcessingInstruction</B ></A ></H2 ><P > Extends <B CLASS="classname" >DOMNode</B >. </P ><DIV CLASS="section" ><H3 CLASS="section" ><A NAME="dom.class.domprocessinginstruction.constructor" >构造函数</A ></H3 ><P ></P ><UL ><LI ><P ><A HREF="function.dom-domprocessinginstruction-construct.html" >DOMProcessingInstruction->__construct()</A > - construct a new DOMProcessingInstruction object</P ></LI ></UL ></DIV ><DIV CLASS="section" ><H3 CLASS="section" ><A NAME="dom.class.domprocessinginstruction.properties" >属性</A ></H3 ><DIV CLASS="table" ><A NAME="AEN37939" ></A ><P ><B >表 11. </B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><COL><COL><THEAD ><TR ><TH >Name</TH ><TH >Type</TH ><TH >Read-only</TH ><TH >Description</TH ></TR ></THEAD ><TBODY ><TR ><TD >target</TD ><TD >string</TD ><TD >yes</TD ><TD > </TD ></TR ><TR ><TD >data</TD ><TD >string</TD ><TD >no</TD ><TD > </TD ></TR ></TBODY ></TABLE ></DIV ></DIV ></DIV ><DIV CLASS="section" ><H2 CLASS="section" ><A NAME="dom.class.domtext" ><B CLASS="classname" >DOMText</B ></A ></H2 ><P > Extends <B CLASS="classname" >DOMCharacterData</B >. </P ><DIV CLASS="section" ><H3 CLASS="section" ><A NAME="dom.class.domtext.constructor" >构造函数</A ></H3 ><P ></P ><UL ><LI ><P ><A HREF="function.dom-domtext-construct.html" >DOMText->__construct()</A > - construct a new DOMText object</P ></LI ></UL ></DIV ><DIV CLASS="section" ><H3 CLASS="section" ><A NAME="dom.class.domtext.methods" >方法</A ></H3 ><P ></P ><UL ><LI ><P ><A HREF="function.dom-domtext-iswhitespaceinelementcontent.html" >DOMText->isWhitespaceInElementContent()</A > - Indicates whether this text node contains whitespace</P ></LI ><LI ><P ><A HREF="function.dom-domtext-splittext.html" >DOMText->splitText()</A > - Breaks the node into two nodes at the specified offset</P ></LI ></UL ></DIV ><DIV CLASS="section" ><H3 CLASS="section" ><A NAME="dom.class.domtext.properties" >属性</A ></H3 ><DIV CLASS="table" ><A NAME="AEN37981" ></A ><P ><B >表 12. </B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><COL><COL><THEAD ><TR ><TH >Name</TH ><TH >Type</TH ><TH >Read-only</TH ><TH >Description</TH ></TR ></THEAD ><TBODY ><TR ><TD >wholeText</TD ><TD >string</TD ><TD >yes</TD ><TD > </TD ></TR ></TBODY ></TABLE ></DIV ></DIV ></DIV ><DIV CLASS="section" ><H2 CLASS="section" ><A NAME="dom.class.domxpath" ><B CLASS="classname" >DOMXPath</B ></A ></H2 ><P > </P ><DIV CLASS="section" ><H3 CLASS="section" ><A NAME="dom.class.domxpath.constructor" >构造函数</A ></H3 ><P ></P ><UL ><LI ><P ><A HREF="function.dom-domxpath-construct.html" >DOMXPath->__construct()</A > - construct a new DOMXPath object</P ></LI ></UL ></DIV ><DIV CLASS="section" ><H3 CLASS="section" ><A NAME="dom.class.domxpath.methods" >方法</A ></H3 ><P ></P ><UL ><LI ><P ><A HREF="function.dom-domxpath-registernamespace.html" >DOMXPath->registerNamespace()</A > - Registers the namespace with the DOMXpath object</P ></LI ><LI ><P ><A HREF="function.dom-domxpath-evaluate.html" >DOMXPath->evaluate()</A > - Evaluates the given XPath expression and returns a typed result if possible</P ></LI ><LI ><P ><A HREF="function.dom-domxpath-query.html" >DOMXPath->query()</A > - Evaluates the given XPath expression</P ></LI ></UL ></DIV ><DIV CLASS="section" ><H3 CLASS="section" ><A NAME="dom.class.domxpath.properties" >属性</A ></H3 ><DIV CLASS="table" ><A NAME="AEN38020" ></A ><P ><B >表 13. </B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><COL><COL><THEAD ><TR ><TH >Name</TH ><TH >Type</TH ><TH >Read-only</TH ><TH >Description</TH ></TR ></THEAD ><TBODY ><TR ><TD >document</TD ><TD >DOMDocument</TD ><TD > </TD ><TD > </TD ></TR ></TBODY ></TABLE ></DIV ></DIV ></DIV ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="dom.examples" >范例</A ></H1 ><P > Many examples in this reference require an XML file. We will use <TT CLASS="filename" >book.xml</TT > that contains the following: </P ><P > <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" CLASS="EXAMPLE" ><TR ><TD ><DIV CLASS="example" ><A NAME="AEN38040" ></A ><P ><B >例 1. book.xml</B ></P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><PRE CLASS="xml" ><?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [ ]> <book id="listing"> <title>My lists</title> <chapter id="books"> <title>My books</title> <para> <informaltable> <tgroup cols="4"> <thead> <row> <entry>Title</entry> <entry>Author</entry> <entry>Language</entry> <entry>ISBN</entry> </row> </thead> <tbody> <row> <entry>The Grapes of Wrath</entry> <entry>John Steinbeck</entry> <entry>en</entry> <entry>0140186409</entry> </row> <row> <entry>The Pearl</entry> <entry>John Steinbeck</entry> <entry>en</entry> <entry>014017737X</entry> </row> <row> <entry>Samarcande</entry> <entry>Amine Maalouf</entry> <entry>fr</entry> <entry>2253051209</entry> </row> <!-- TODO: I have a lot of remaining books to add.. --> </tbody> </tgroup> </informaltable> </para> </chapter> </book></PRE ></TD ></TR ></TABLE ></DIV ></TD ></TR ></TABLE > </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="dom.constants" >预定义常量</A ></H1 ><P >以下常量由本扩展模块定义,因此只有在本扩展模块被编译到 PHP 中,或者在运行时被动态加载后才有效。</P ><DIV CLASS="table" ><A NAME="AEN38046" ></A ><P ><B >表 14. 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 a <B CLASS="classname" >DOMElement</B ></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 a <B CLASS="classname" >DOMAttr</B ></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 <B CLASS="classname" >DOMText</B ></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 >Node is a <B CLASS="classname" >DOMCharacterData</B ></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 >Node is a <B CLASS="classname" >DOMEntityReference</B ></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 a <B CLASS="classname" >DOMEntity</B ></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 <B CLASS="classname" >DOMProcessingInstruction</B ></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 <B CLASS="classname" >DOMComment</B ></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 <B CLASS="classname" >DOMDocument</B ></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 >Node is a <B CLASS="classname" >DOMDocumentType</B ></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 >Node is a <B CLASS="classname" >DOMDocumentFragment</B ></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 >Node is a <B CLASS="classname" >DOMNotation</B ></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 >13</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 >14</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 >15</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 >16</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 >17</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 >18</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 >1</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 >2</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 >3</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 >4</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 >5</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 >7</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 >8</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 >9</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 >10</TD ><TD > </TD ></TR ></TBODY ></TABLE ></DIV ><DIV CLASS="table" ><A NAME="AEN38229" ></A ><P ><B >表 15. DOMException 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 >DOM_INDEX_SIZE_ERR</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD >1</TD ><TD > If index or size is negative, or greater than the allowed value. </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >DOMSTRING_SIZE_ERR</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD >2</TD ><TD > If the specified range of text does not fit into a <B CLASS="classname" >DOMString</B >. </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >DOM_HIERARCHY_REQUEST_ERR</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD >3</TD ><TD >If any node is inserted somewhere it doesn't belong</TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >DOM_WRONG_DOCUMENT_ERR</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD >4</TD ><TD > If a node is used in a different document than the one that created it. </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >DOM_INVALID_CHARACTER_ERR</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD >5</TD ><TD > If an invalid or illegal character is specified, such as in a name. </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >DOM_NO_DATA_ALLOWED_ERR</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD >6</TD ><TD > If data is specified for a node which does not support data. </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >DOM_NO_MODIFICATION_ALLOWED_ERR</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD >7</TD ><TD > If an attempt is made to modify an object where modifications are not allowed. </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >DOM_NOT_FOUND_ERR</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD >8</TD ><TD > If an attempt is made to reference a node in a context where it does not exist. </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >DOM_NOT_SUPPORTED_ERR</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD >9</TD ><TD > If the implementation does not support the requested type of object or operation. </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >DOM_INUSE_ATTRIBUTE_ERR</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD >10</TD ><TD > If an attempt is made to add an attribute that is already in use elsewhere. </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >DOM_INVALID_STATE_ERR</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD >11</TD ><TD > If an attempt is made to use an object that is not, or is no longer, usable. </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >DOM_SYNTAX_ERR</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD >12</TD ><TD >If an invalid or illegal string is specified.</TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >DOM_INVALID_MODIFICATION_ERR</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD >13</TD ><TD >If an attempt is made to modify the type of the underlying object.</TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >DOM_NAMESPACE_ERR</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD >14</TD ><TD > If an attempt is made to create or change an object in a way which is incorrect with regard to namespaces. </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >DOM_INVALID_ACCESS_ERR</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD >15</TD ><TD > If a parameter or an operation is not supported by the underlying object. </TD ></TR ><TR ><TD > <TT CLASS="constant" ><B >DOM_VALIDATION_ERR</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >) </TD ><TD >16</TD ><TD > If a call to a method such as insertBefore or removeChild would make the Node invalid with respect to "partial validity", this exception would be raised and the operation would not be done. </TD ></TR ></TBODY ></TABLE ></DIV ></DIV ></DIV ><DIV CLASS="TOC" ><DL ><DT ><B >目录</B ></DT ><DT ><A HREF="function.dom-domattr-construct.html" >DOMAttr->__construct()</A > -- Creates a new DOMAttr object </DT ><DT ><A HREF="function.dom-domattr-isid.html" >DOMAttr->isId()</A > -- Checks if attribute is a defined ID </DT ><DT ><A HREF="function.dom-domcharacterdata-appenddata.html" >DOMCharacterData->appendData()</A > -- Append the string to the end of the character data of the node </DT ><DT ><A HREF="function.dom-domcharacterdata-deletedata.html" >DOMCharacterData->deleteData()</A > -- Remove a range of characters from the node </DT ><DT ><A HREF="function.dom-domcharacterdata-insertdata.html" >DOMCharacterData->insertData()</A > -- Insert a string at the specified 16-bit unit offset </DT ><DT ><A HREF="function.dom-domcharacterdata-replacedata.html" >DOMCharacterData->replaceData()</A > -- Replace a substring within the DOMCharacterData node </DT ><DT ><A HREF="function.dom-domcharacterdata-substringdata.html" >DOMCharacterData->substringData()</A > -- Extracts a range of data from the node </DT ><DT ><A HREF="function.dom-domcomment-construct.html" >DOMComment->__construct()</A > -- Creates a new DOMComment object </DT ><DT ><A HREF="function.dom-domdocument-construct.html" >DOMDocument->__construct()</A > -- Creates a new DOMDocument object </DT ><DT ><A HREF="function.dom-domdocument-createattribute.html" >DOMDocument->createAttribute()</A > -- Create new attribute</DT ><DT ><A HREF="function.dom-domdocument-createattributens.html" >DOMDocument->createAttributeNS()</A > -- Create new attribute node with an associated namespace </DT ><DT ><A HREF="function.dom-domdocument-createcdatasection.html" >DOMDocument->createCDATASection()</A > -- Create new cdata node</DT ><DT ><A HREF="function.dom-domdocument-createcomment.html" >DOMDocument->createComment()</A > -- Create new comment node</DT ><DT ><A HREF="function.dom-domdocument-createdocumentfragment.html" >DOMDocument->createDocumentFragment()</A > -- Create new document fragment</DT ><DT ><A HREF="function.dom-domdocument-createelement.html" >DOMDocument->createElement()</A > -- Create new element node</DT ><DT ><A HREF="function.dom-domdocument-createelementns.html" >DOMDocument->createElementNS()</A > -- Create new element node with an associated namespace </DT ><DT ><A HREF="function.dom-domdocument-createentityreference.html" >DOMDocument->createEntityReference()</A > -- Create new entity reference node</DT ><DT ><A HREF="function.dom-domdocument-createprocessinginstruction.html" >DOMDocument->createProcessingInstruction()</A > -- Creates new PI node</DT ><DT ><A HREF="function.dom-domdocument-createtextnode.html" >DOMDocument->createTextNode()</A > -- Create new text node</DT ><DT ><A HREF="function.dom-domdocument-getelementbyid.html" >DOMDocument->getElementById()</A > -- Searches for an element with a certain id</DT ><DT ><A HREF="function.dom-domdocument-getelementsbytagname.html" >DOMDocument->getElementsByTagName()</A > -- Searches for all elements with given tag name</DT ><DT ><A HREF="function.dom-domdocument-getelementsbytagnamens.html" >DOMDocument->getElementsByTagNameNS()</A > -- Searches for all elements with given tag name in specified namespace </DT ><DT ><A HREF="function.dom-domdocument-importnode.html" >DOMDocument->importNode()</A > -- Import node into current document</DT ><DT ><A HREF="function.dom-domdocument-load.html" >DOMDocument->load()</A > -- Load XML from a file </DT ><DT ><A HREF="function.dom-domdocument-loadhtml.html" >DOMDocument->loadHTML()</A > -- Load HTML from a string </DT ><DT ><A HREF="function.dom-domdocument-loadhtmlfile.html" >DOMDocument->loadHTMLFile()</A > -- Load HTML from a file </DT ><DT ><A HREF="function.dom-domdocument-loadxml.html" >DOMDocument->loadXML()</A > -- Load XML from a string </DT ><DT ><A HREF="function.dom-domdocument-normalizedocument.html" >DOMDocument->normalizeDocument()</A > -- Normalizes the document</DT ><DT ><A HREF="function.dom-domdocument-registernodeclass.html" >DOMDocument->registerNodeClass()</A > -- Register extended class used to create base node type</DT ><DT ><A HREF="function.dom-domdocument-relaxngvalidate.html" >DOMDocument->relaxNGValidate()</A > -- Performs relaxNG validation on the document </DT ><DT ><A HREF="function.dom-domdocument-relaxngvalidatesource.html" >DOMDocument->relaxNGValidateSource()</A > -- Performs relaxNG validation on the document </DT ><DT ><A HREF="function.dom-domdocument-save.html" >DOMDocument->save()</A > -- Dumps the internal XML tree back into a file </DT ><DT ><A HREF="function.dom-domdocument-savehtml.html" >DOMDocument->saveHTML()</A > -- Dumps the internal document into a string using HTML formatting </DT ><DT ><A HREF="function.dom-domdocument-savehtmlfile.html" >DOMDocument->saveHTMLFile()</A > -- Dumps the internal document into a file using HTML formatting </DT ><DT ><A HREF="function.dom-domdocument-savexml.html" >DOMDocument->saveXML()</A > -- Dumps the internal XML tree back into a string </DT ><DT ><A HREF="function.dom-domdocument-schemavalidate.html" >DOMDocument->schemaValidate()</A > -- Validates a document based on a schema </DT ><DT ><A HREF="function.dom-domdocument-schemavalidatesource.html" >DOMDocument->schemaValidateSource()</A > -- Validates a document based on a schema </DT ><DT ><A HREF="function.dom-domdocument-validate.html" >DOMDocument->validate()</A > -- Validates the document based on its DTD </DT ><DT ><A HREF="function.dom-domdocument-xinclude.html" >DOMDocument->xinclude()</A > -- Substitutes XIncludes in a DOMDocument Object </DT ><DT ><A HREF="function.dom-domdocumentfragment-appendxml.html" >DOMDocumentFragment->appendXML()</A > -- Append raw XML data</DT ><DT ><A HREF="function.dom-domelement-construct.html" >DOMElement->__construct()</A > -- Creates a new DOMElement object </DT ><DT ><A HREF="function.dom-domelement-getattribute.html" >DOMElement->getAttribute()</A > -- Returns value of attribute</DT ><DT ><A HREF="function.dom-domelement-getattributenode.html" >DOMElement->getAttributeNode()</A > -- Returns attribute node</DT ><DT ><A HREF="function.dom-domelement-getattributenodens.html" >DOMElement->getAttributeNodeNS()</A > -- Returns attribute node </DT ><DT ><A HREF="function.dom-domelement-getattributens.html" >DOMElement->getAttributeNS()</A > -- Returns value of attribute</DT ><DT ><A HREF="function.dom-domelement-getelementsbytagname.html" >DOMElement->getElementsByTagName()</A > -- Gets elements by tagname</DT ><DT ><A HREF="function.dom-domelement-getelementsbytagnamens.html" >DOMElement->getElementsByTagNameNS()</A > -- Get elements by namespaceURI and localName</DT ><DT ><A HREF="function.dom-domelement-hasattribute.html" >DOMElement->hasAttribute()</A > -- Checks to see if attribute exists</DT ><DT ><A HREF="function.dom-domelement-hasattributens.html" >DOMElement->hasAttributeNS()</A > -- Checks to see if attribute exists </DT ><DT ><A HREF="function.dom-domelement-removeattribute.html" >DOMElement->removeAttribute()</A > -- Removes attribute</DT ><DT ><A HREF="function.dom-domelement-removeattributenode.html" >DOMElement->removeAttributeNode()</A > -- Removes attribute</DT ><DT ><A HREF="function.dom-domelement-removeattributens.html" >DOMElement->removeAttributeNS()</A > -- Removes attribute</DT ><DT ><A HREF="function.dom-domelement-setattribute.html" >DOMElement->setAttribute()</A > -- Adds new attribute</DT ><DT ><A HREF="function.dom-domelement-setattributenode.html" >DOMElement->setAttributeNode()</A > -- Adds new attribute node to element</DT ><DT ><A HREF="function.dom-domelement-setattributenodens.html" >DOMElement->setAttributeNodeNS()</A > -- Adds new attribute node to element</DT ><DT ><A HREF="function.dom-domelement-setattributens.html" >DOMElement->setAttributeNS()</A > -- Adds new attribute</DT ><DT ><A HREF="function.dom-domelement-setidattribute.html" >DOMElement->setIdAttribute()</A > -- Declares the attribute specified by name to be of type ID</DT ><DT ><A HREF="function.dom-domelement-setidattributenode.html" >DOMElement->setIdAttributeNode()</A > -- Declares the attribute specified by node to be of type ID</DT ><DT ><A HREF="function.dom-domelement-setidattributens.html" >DOMElement->setIdAttributeNS()</A > -- Declares the attribute specified by local name and namespace URI to be of type ID</DT ><DT ><A HREF="function.dom-domentityreference-construct.html" >DOMEntityReference->__construct()</A > -- Creates a new DOMEntityReference object </DT ><DT ><A HREF="function.dom-domimplementation-construct.html" >DOMImplementation->__construct()</A > -- Creates a new DOMImplementation object </DT ><DT ><A HREF="function.dom-domimplementation-createdocument.html" >DOMImplementation->createDocument()</A > -- Creates a DOMDocument object of the specified type with its document element </DT ><DT ><A HREF="function.dom-domimplementation-createdocumenttype.html" >DOMImplementation->createDocumentType()</A > -- Creates an empty DOMDocumentType object </DT ><DT ><A HREF="function.dom-domimplementation-hasfeature.html" >DOMImplementation->hasFeature()</A > -- Test if the DOM implementation implements a specific feature </DT ><DT ><A HREF="function.dom-domnamednodemap-getnameditem.html" >DOMNamedNodeMap->getNamedItem()</A > -- Retrieves a node specified by name </DT ><DT ><A HREF="function.dom-domnamednodemap-getnameditemns.html" >DOMNamedNodeMap->getNamedItemNS()</A > -- Retrieves a node specified by local name and namespace URI </DT ><DT ><A HREF="function.dom-domnamednodemap-item.html" >DOMNamedNodeMap->item()</A > -- Retrieves a node specified by index</DT ><DT ><A HREF="function.dom-domnode-appendchild.html" >DOMNode->appendChild()</A > -- Adds new child at the end of the children </DT ><DT ><A HREF="function.dom-domnode-clonenode.html" >DOMNode->cloneNode()</A > -- Clones a node </DT ><DT ><A HREF="function.dom-domnode-hasattributes.html" >DOMNode->hasAttributes()</A > -- Checks if node has attributes </DT ><DT ><A HREF="function.dom-domnode-haschildnodes.html" >DOMNode->hasChildNodes()</A > -- Checks if node has children </DT ><DT ><A HREF="function.dom-domnode-insertbefore.html" >DOMNode->insertBefore()</A > -- Adds a new child before a reference node </DT ><DT ><A HREF="function.dom-domnode-isdefaultnamespace.html" >DOMNode->isDefaultNamespace()</A > -- Checks if the specified namespaceURI is the default namespace or not</DT ><DT ><A HREF="function.dom-domnode-issamenode.html" >DOMNode->isSameNode()</A > -- Indicates if two nodes are the same node </DT ><DT ><A HREF="function.dom-domnode-issupported.html" >DOMNode->isSupported()</A > -- Checks if feature is supported for specified version </DT ><DT ><A HREF="function.dom-domnode-lookupnamespaceuri.html" >DOMNode->lookupNamespaceURI()</A > -- Gets the namespace URI of the node based on the prefix </DT ><DT ><A HREF="function.dom-domnode-lookupprefix.html" >DOMNode->lookupPrefix()</A > -- Gets the namespace prefix of the node based on the namespace URI </DT ><DT ><A HREF="function.dom-domnode-normalize.html" >DOMNode->normalize()</A > -- Normalizes the node </DT ><DT ><A HREF="function.dom-domnode-removechild.html" >DOMNode->removeChild()</A > -- Removes child from list of children </DT ><DT ><A HREF="function.dom-domnode-replacechild.html" >DOMNode->replaceChild()</A > -- Replaces a child </DT ><DT ><A HREF="function.dom-domnodelist-item.html" >DOMNodelist->item()</A > -- Retrieves a node specified by index </DT ><DT ><A HREF="function.dom-domprocessinginstruction-construct.html" >DOMProcessingInstruction->__construct()</A > -- Creates a new DOMProcessingInstruction object </DT ><DT ><A HREF="function.dom-domtext-construct.html" >DOMText->__construct()</A > -- Creates a new DOMText object </DT ><DT ><A HREF="function.dom-domtext-iswhitespaceinelementcontent.html" >DOMText->isWhitespaceInElementContent()</A > -- Indicates whether this text node contains whitespace </DT ><DT ><A HREF="function.dom-domtext-splittext.html" >DOMText->splitText()</A > -- Breaks this node into two nodes at the specified offset </DT ><DT ><A HREF="function.dom-domxpath-construct.html" >DOMXPath->__construct()</A > -- Creates a new DOMXPath object </DT ><DT ><A HREF="function.dom-domxpath-evaluate.html" >DOMXPath->evaluate()</A > -- Evaluates the given XPath expression and returns a typed result if possible. </DT ><DT ><A HREF="function.dom-domxpath-query.html" >DOMXPath->query()</A > -- Evaluates the given XPath expression </DT ><DT ><A HREF="function.dom-domxpath-registernamespace.html" >DOMXPath->registerNamespace()</A > -- Registers the namespace with the DOMXPath object </DT ><DT ><A HREF="function.dom-import-simplexml.html" >dom_import_simplexml</A > -- Gets a DOMElement object from a SimpleXMLElement object </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.scandir.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.dom-domattr-construct.html" ACCESSKEY="N" >下一页</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >scandir</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="funcref.html" ACCESSKEY="U" >上一级</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >DOMAttr->__construct()</TD ></TR ></TABLE ></DIV ></BODY ></HTML >