Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 05cd670d8a02b2b4a0ffb1756f2e8308 > files > 12133

php-manual-zh-5.2.4-1mdv2008.1.noarch.rpm

<!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
>&#13;     The DOM extension allows you to operate on XML documents through the DOM
     API with PHP 5.
    </P
><P
>&#13;     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
>&#13;     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
>&#13;     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
>&#13;      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-&#62;__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-&#62;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
>&#13;      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-&#62;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-&#62;deleteData()</A
> - Remove a range of characters from the node</P
></LI
><LI
><P
><A
HREF="function.dom-domcharacterdata-insertdata.html"
>DOMCharacterData-&#62;insertData()</A
> - Insert a string at the specified 16-bit unit offset</P
></LI
><LI
><P
><A
HREF="function.dom-domcharacterdata-replacedata.html"
>DOMCharacterData-&#62;replaceData()</A
> - Replace a substring within the DOMCharacterData node</P
></LI
><LI
><P
><A
HREF="function.dom-domcharacterdata-substringdata.html"
>DOMCharacterData-&#62;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
>&#13;      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-&#62;__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
>&#13;      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-&#62;__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-&#62;createAttribute()</A
> - Create new attribute</P
></LI
><LI
><P
><A
HREF="function.dom-domdocument-createattributens.html"
>DOMDocument-&#62;createAttributeNS()</A
> - Create new attribute node with an associated namespace</P
></LI
><LI
><P
><A
HREF="function.dom-domdocument-createcdatasection.html"
>DOMDocument-&#62;createCDATASection()</A
> - Create new cdata node</P
></LI
><LI
><P
><A
HREF="function.dom-domdocument-createcomment.html"
>DOMDocument-&#62;createComment()</A
> - Create new comment node</P
></LI
><LI
><P
><A
HREF="function.dom-domdocument-createdocumentfragment.html"
>DOMDocument-&#62;createDocumentFragment()</A
> - Create new document fragment</P
></LI
><LI
><P
><A
HREF="function.dom-domdocument-createelement.html"
>DOMDocument-&#62;createElement()</A
> - Create new element node</P
></LI
><LI
><P
><A
HREF="function.dom-domdocument-createelementns.html"
>DOMDocument-&#62;createElementNS()</A
> - Create new element node with an associated namespace</P
></LI
><LI
><P
><A
HREF="function.dom-domdocument-createentityreference.html"
>DOMDocument-&#62;createEntityReference()</A
> - Create new entity reference node</P
></LI
><LI
><P
><A
HREF="function.dom-domdocument-createprocessinginstruction.html"
>DOMDocument-&#62;createProcessingInstruction()</A
> - Creates new PI node</P
></LI
><LI
><P
><A
HREF="function.dom-domdocument-createtextnode.html"
>DOMDocument-&#62;createTextNode()</A
> - Create new text node</P
></LI
><LI
><P
><A
HREF="function.dom-domdocument-getelementbyid.html"
>DOMDocument-&#62;getElementById()</A
> - Searches for an element with a certain id</P
></LI
><LI
><P
><A
HREF="function.dom-domdocument-getelementsbytagname.html"
>DOMDocument-&#62;getElementsByTagName()</A
> - Searches for all elements with given tag name</P
></LI
><LI
><P
><A
HREF="function.dom-domdocument-getelementsbytagnamens.html"
>DOMDocument-&#62;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-&#62;importNode()</A
> - Import node into current document</P
></LI
><LI
><P
><A
HREF="function.dom-domdocument-load.html"
>DOMDocument-&#62;load()</A
> - Load XML from a file</P
></LI
><LI
><P
><A
HREF="function.dom-domdocument-loadhtml.html"
>DOMDocument-&#62;loadHTML()</A
> - Load HTML from a string</P
></LI
><LI
><P
><A
HREF="function.dom-domdocument-loadhtmlfile.html"
>DOMDocument-&#62;loadHTMLFile()</A
> - Load HTML from a file</P
></LI
><LI
><P
><A
HREF="function.dom-domdocument-loadxml.html"
>DOMDocument-&#62;loadXML()</A
> - Load XML from a string</P
></LI
><LI
><P
><A
HREF="function.dom-domdocument-normalizedocument.html"
>DOMDocument-&#62;normalizeDocument()</A
> - Normalizes the document</P
></LI
><LI
><P
><A
HREF="function.dom-domdocument-relaxngvalidate.html"
>DOMDocument-&#62;relaxNGValidate()</A
> - Performs relaxNG validation on the document</P
></LI
><LI
><P
><A
HREF="function.dom-domdocument-relaxngvalidatesource.html"
>DOMDocument-&#62;relaxNGValidateSource()</A
> - Performs relaxNG validation on the document</P
></LI
><LI
><P
><A
HREF="function.dom-domdocument-registernodeclass.html"
>DOMDocument-&#62;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-&#62;save()</A
> - Dumps the internal XML tree back into a file</P
></LI
><LI
><P
><A
HREF="function.dom-domdocument-savehtml.html"
>DOMDocument-&#62;saveHTML()</A
> - Dumps the internal document into a string using HTML formatting</P
></LI
><LI
><P
><A
HREF="function.dom-domdocument-savehtmlfile.html"
>DOMDocument-&#62;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-&#62;saveXML()</A
> - Dumps the internal XML tree back into a string</P
></LI
><LI
><P
><A
HREF="function.dom-domdocument-schemavalidate.html"
>DOMDocument-&#62;schemaValidate()</A
> - Validates a document based on a schema</P
></LI
><LI
><P
><A
HREF="function.dom-domdocument-schemavalidatesource.html"
>DOMDocument-&#62;schemaValidateSource()</A
> - Validates a document based on a schema</P
></LI
><LI
><P
><A
HREF="function.dom-domdocument-validate.html"
>DOMDocument-&#62;validate()</A
> - Validates the document based on its DTD</P
></LI
><LI
><P
><A
HREF="function.dom-domdocument-xinclude.html"
>DOMDocument-&#62;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
>&nbsp;</TD
></TR
><TR
><TD
>config</TD
><TD
>DOMConfiguration</TD
><TD
>yes</TD
><TD
>&nbsp;</TD
></TR
><TR
><TD
>doctype</TD
><TD
>DOMDocumentType</TD
><TD
>yes</TD
><TD
>&#13;           The Document Type Declaration associated with this document.
          </TD
></TR
><TR
><TD
>documentElement</TD
><TD
>DOMElement</TD
><TD
>yes</TD
><TD
>&#13;           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
>&#13;           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
>&nbsp;</TD
></TR
><TR
><TD
>formatOutput</TD
><TD
>bool</TD
><TD
>no</TD
><TD
>&nbsp;</TD
></TR
><TR
><TD
>implementation</TD
><TD
>DOMImplementation</TD
><TD
>yes</TD
><TD
>&#13;           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
>&nbsp;</TD
></TR
><TR
><TD
>resolveExternals</TD
><TD
>bool</TD
><TD
>no</TD
><TD
>&#13;           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
>&nbsp;</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
>&nbsp;</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
>&nbsp;</TD
></TR
><TR
><TD
>xmlEncoding</TD
><TD
>string</TD
><TD
>yes</TD
><TD
>&#13;           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
>&#13;           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
>&#13;           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
>&#13;      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-&#62;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
>&#13;      Extends <B
CLASS="classname"
>DOMNode</B
>
     </P
><P
>&#13;      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
>&#13;           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
>&#13;           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
>&#13;           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
>&#13;      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-&#62;__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-&#62;getAttribute()</A
> - Returns value of attribute</P
></LI
><LI
><P
><A
HREF="function.dom-domelement-getattributenode.html"
>DOMElement-&#62;getAttributeNode()</A
> - Returns attribute node</P
></LI
><LI
><P
><A
HREF="function.dom-domelement-getattributenodens.html"
>DOMElement-&#62;getAttributeNodeNS()</A
> - Returns attribute node</P
></LI
><LI
><P
><A
HREF="function.dom-domelement-getattributens.html"
>DOMElement-&#62;getAttributeNS()</A
> - Returns value of attribute</P
></LI
><LI
><P
><A
HREF="function.dom-domelement-getelementsbytagname.html"
>DOMElement-&#62;getElementsByTagName()</A
> - Gets elements by tagname</P
></LI
><LI
><P
><A
HREF="function.dom-domelement-getelementsbytagnamens.html"
>DOMElement-&#62;getElementsByTagNameNS()</A
> - Get elements by namespaceURI and localName</P
></LI
><LI
><P
><A
HREF="function.dom-domelement-hasattribute.html"
>DOMElement-&#62;hasAttribute()</A
> - Checks to see if attribute exists</P
></LI
><LI
><P
><A
HREF="function.dom-domelement-hasattributens.html"
>DOMElement-&#62;hasAttributeNS()</A
> - Checks to see if attribute exists</P
></LI
><LI
><P
><A
HREF="function.dom-domelement-removeattribute.html"
>DOMElement-&#62;removeAttribute()</A
> - Removes attribute</P
></LI
><LI
><P
><A
HREF="function.dom-domelement-removeattributenode.html"
>DOMElement-&#62;removeAttributeNode()</A
> - Removes attribute</P
></LI
><LI
><P
><A
HREF="function.dom-domelement-removeattributens.html"
>DOMElement-&#62;removeAttributeNS()</A
> - Removes attribute</P
></LI
><LI
><P
><A
HREF="function.dom-domelement-setattribute.html"
>DOMElement-&#62;setAttribute()</A
> - Adds new attribute</P
></LI
><LI
><P
><A
HREF="function.dom-domelement-setattributenode.html"
>DOMElement-&#62;setAttributeNode()</A
> - Adds new attribute node to element</P
></LI
><LI
><P
><A
HREF="function.dom-domelement-setattributenodens.html"
>DOMElement-&#62;setAttributeNodeNS()</A
> - Adds new attribute node to element</P
></LI
><LI
><P
><A
HREF="function.dom-domelement-setattributens.html"
>DOMElement-&#62;setAttributeNS()</A
> - Adds new attribute</P
></LI
><LI
><P
><A
HREF="function.dom-domelement-setidattribute.html"
>DOMElement-&#62;setIdAttribute()</A
> - Declares the ID attribute</P
></LI
><LI
><P
><A
HREF="function.dom-domelement-setidattributenode.html"
>DOMElement-&#62;setIdAttributeNode()</A
> - Declares the ID attribute</P
></LI
><LI
><P
><A
HREF="function.dom-domelement-setidattributens.html"
>DOMElement-&#62;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
>&#13;      Extends <B
CLASS="classname"
>DOMNode</B
>
     </P
><P
>&#13;      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
>&#13;           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
>&#13;           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
>&#13;           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
>&#13;           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
>&#13;           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
>&#13;           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
>&#13;      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-&#62;__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
>&#13;      DOM operations raise exceptions under particular circumstances, i.e.,
      when an operation is impossible to perform for logical reasons.
     </P
><P
>&#13;      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
>&#13;      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-&#62;__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-&#62;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-&#62;createDocumentType()</A
> - Creates an empty DOMDocumentType object</P
></LI
><LI
><P
><A
HREF="function.dom-domimplementation-hasfeature.html"
>DOMImplementation-&#62;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-&#62;getNamedItem()</A
> - Retrieves a node specified by name</P
></LI
><LI
><P
><A
HREF="function.dom-domnamednodemap-getnameditemns.html"
>DOMNamedNodeMap-&#62;getNamedItemNS()</A
> - Retrieves a node specified by local name and namespace URI</P
></LI
><LI
><P
><A
HREF="function.dom-domnamednodemap-item.html"
>DOMNamedNodeMap-&#62;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-&#62;appendChild()</A
> - Adds new child at the end of the children</P
></LI
><LI
><P
><A
HREF="function.dom-domnode-clonenode.html"
>DOMNode-&#62;cloneNode()</A
> - Clones a node</P
></LI
><LI
><P
><A
HREF="function.dom-domnode-hasattributes.html"
>DOMNode-&#62;hasAttributes()</A
> - Checks if node has attributes</P
></LI
><LI
><P
><A
HREF="function.dom-domnode-haschildnodes.html"
>DOMNode-&#62;hasChildNodes()</A
> - Checks if node has children</P
></LI
><LI
><P
><A
HREF="function.dom-domnode-insertbefore.html"
>DOMNode-&#62;insertBefore()</A
> - Adds a
        new child before a reference node</P
></LI
><LI
><P
><A
HREF="function.dom-domnode-isdefaultnamespace.html"
>DOMNode-&#62;isDefaultNamespace()</A
> - Checks if the specified namespaceURI is 
        the default namespace</P
></LI
><LI
><P
><A
HREF="function.dom-domnode-issamenode.html"
>DOMNode-&#62;isSameNode()</A
> - Indicates if two nodes are the same node</P
></LI
><LI
><P
><A
HREF="function.dom-domnode-issupported.html"
>DOMNode-&#62;isSupported()</A
> - Checks if feature is supported for specified version</P
></LI
><LI
><P
><A
HREF="function.dom-domnode-lookupnamespaceuri.html"
>DOMNode-&#62;lookupNamespaceURI()</A
> - Returns namespace URI of the node based on the prefix</P
></LI
><LI
><P
><A
HREF="function.dom-domnode-lookupprefix.html"
>DOMNode-&#62;lookupPrefix()</A
> - Returns name space prefix of the node based on namespaceURI</P
></LI
><LI
><P
><A
HREF="function.dom-domnode-normalize.html"
>DOMNode-&#62;normalize()</A
> - Normalizes the node</P
></LI
><LI
><P
><A
HREF="function.dom-domnode-removechild.html"
>DOMNode-&#62;removeChild()</A
> - Removes child from list of children</P
></LI
><LI
><P
><A
HREF="function.dom-domnode-replacechild.html"
>DOMNode-&#62;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
>&#13;           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
>&#13;           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
>&#13;           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
>&#13;           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
>&#13;           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
>&#13;           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
>&#13;           The <B
CLASS="classname"
>DOMDocument</B
> object associated with this
           node.
          </TD
></TR
><TR
><TD
>namespaceURI</TD
><TD
>string</TD
><TD
>yes</TD
><TD
>&#13;           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
>&#13;           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
>&#13;           Returns the local part of the qualified name of this node.
          </TD
></TR
><TR
><TD
>baseURI</TD
><TD
>string</TD
><TD
>yes</TD
><TD
>&#13;           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
>&#13;           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
>&#13;      
     </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-&#62;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
>&#13;           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
>&#13;      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
>&nbsp;</TD
></TR
><TR
><TD
>systemId</TD
><TD
>string</TD
><TD
>yes</TD
><TD
>&nbsp;</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
>&#13;      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-&#62;__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
>&nbsp;</TD
></TR
><TR
><TD
>data</TD
><TD
>string</TD
><TD
>no</TD
><TD
>&nbsp;</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
>&#13;      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-&#62;__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-&#62;isWhitespaceInElementContent()</A
> - Indicates whether this text node contains whitespace</P
></LI
><LI
><P
><A
HREF="function.dom-domtext-splittext.html"
>DOMText-&#62;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
>&nbsp;</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
>&#13;     </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-&#62;__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-&#62;registerNamespace()</A
> - Registers the namespace with the DOMXpath object</P
></LI
><LI
><P
><A
HREF="function.dom-domxpath-evaluate.html"
>DOMXPath-&#62;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-&#62;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
>&nbsp;</TD
><TD
>&nbsp;</TD
></TR
></TBODY
></TABLE
></DIV
></DIV
></DIV
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="dom.examples"
>范例</A
></H1
><P
>&#13;     Many examples in this reference require an XML file. We will use 
     <TT
CLASS="filename"
>book.xml</TT
> that contains the following:
    </P
><P
>&#13;     <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"
>&#60;?xml version="1.0" encoding="iso-8859-1"?&#62;
&#60;!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
]&#62;
&#60;book id="listing"&#62;
 &#60;title&#62;My lists&#60;/title&#62;
 &#60;chapter id="books"&#62;
  &#60;title&#62;My books&#60;/title&#62;
  &#60;para&#62;
   &#60;informaltable&#62;
    &#60;tgroup cols="4"&#62;
     &#60;thead&#62;
      &#60;row&#62;
       &#60;entry&#62;Title&#60;/entry&#62;
       &#60;entry&#62;Author&#60;/entry&#62;
       &#60;entry&#62;Language&#60;/entry&#62;
       &#60;entry&#62;ISBN&#60;/entry&#62;
      &#60;/row&#62;
     &#60;/thead&#62;
     &#60;tbody&#62;
      &#60;row&#62;
       &#60;entry&#62;The Grapes of Wrath&#60;/entry&#62;
       &#60;entry&#62;John Steinbeck&#60;/entry&#62;
       &#60;entry&#62;en&#60;/entry&#62;
       &#60;entry&#62;0140186409&#60;/entry&#62;
      &#60;/row&#62;
      &#60;row&#62;
       &#60;entry&#62;The Pearl&#60;/entry&#62;
       &#60;entry&#62;John Steinbeck&#60;/entry&#62;
       &#60;entry&#62;en&#60;/entry&#62;
       &#60;entry&#62;014017737X&#60;/entry&#62;
      &#60;/row&#62;
      &#60;row&#62;
       &#60;entry&#62;Samarcande&#60;/entry&#62;
       &#60;entry&#62;Amine Maalouf&#60;/entry&#62;
       &#60;entry&#62;fr&#60;/entry&#62;
       &#60;entry&#62;2253051209&#60;/entry&#62;
      &#60;/row&#62;
      &#60;!-- TODO: I have a lot of remaining books to add.. --&#62;
     &#60;/tbody&#62;
    &#60;/tgroup&#62;
   &#60;/informaltable&#62;
  &#60;/para&#62;
 &#60;/chapter&#62;
&#60;/book&#62;</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
>&#13;       <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
>&#13;       <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
>&#13;       <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
>&#13;       <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
>&#13;       <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
>&#13;       <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
>&#13;       <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
>&#13;       <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
>&#13;       <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
>&#13;       <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
>&#13;       <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
>&#13;       <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
>&#13;       <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
>&nbsp;</TD
></TR
><TR
><TD
>&#13;       <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
>&nbsp;</TD
></TR
><TR
><TD
>&#13;       <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
>&nbsp;</TD
></TR
><TR
><TD
>&#13;       <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
>&nbsp;</TD
></TR
><TR
><TD
>&#13;       <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
>&nbsp;</TD
></TR
><TR
><TD
>&#13;       <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
>&nbsp;</TD
></TR
><TR
><TD
>&#13;       <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
>&nbsp;</TD
></TR
><TR
><TD
>&#13;       <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
>&nbsp;</TD
></TR
><TR
><TD
>&#13;       <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
>&nbsp;</TD
></TR
><TR
><TD
>&#13;       <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
>&nbsp;</TD
></TR
><TR
><TD
>&#13;       <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
>&nbsp;</TD
></TR
><TR
><TD
>&#13;       <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
>&nbsp;</TD
></TR
><TR
><TD
>&#13;       <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
>&nbsp;</TD
></TR
><TR
><TD
>&#13;       <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
>&nbsp;</TD
></TR
><TR
><TD
>&#13;       <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
>&nbsp;</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
>&#13;       <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
>&#13;       If index or size is negative, or greater than the allowed value.
      </TD
></TR
><TR
><TD
>&#13;       <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
>&#13;       If the specified range of text does not fit into a 
       <B
CLASS="classname"
>DOMString</B
>.
      </TD
></TR
><TR
><TD
>&#13;       <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
>&#13;       <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
>&#13;       If a node is used in a different document than the one that created it.
      </TD
></TR
><TR
><TD
>&#13;       <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
>&#13;       If an invalid or illegal character is specified, such as in a name.
      </TD
></TR
><TR
><TD
>&#13;       <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
>&#13;       If data is specified for a node which does not support data.
      </TD
></TR
><TR
><TD
>&#13;       <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
>&#13;       If an attempt is made to modify an object where modifications are not allowed.
      </TD
></TR
><TR
><TD
>&#13;       <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
>&#13;       If an attempt is made to reference a node in a context where it does not exist.
      </TD
></TR
><TR
><TD
>&#13;       <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
>&#13;       If the implementation does not support the requested type of object or operation.
      </TD
></TR
><TR
><TD
>&#13;       <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
>&#13;       If an attempt is made to add an attribute that is already in use elsewhere.
      </TD
></TR
><TR
><TD
>&#13;       <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
>&#13;       If an attempt is made to use an object that is not, or is no longer, usable.
      </TD
></TR
><TR
><TD
>&#13;       <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
>&#13;       <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
>&#13;       <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
>&#13;       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
>&#13;       <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
>&#13;       If a parameter or an operation is not supported by the underlying object.
      </TD
></TR
><TR
><TD
>&#13;       <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
>&#13;       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-&#62;__construct()</A
>&nbsp;--&nbsp;
   Creates a new DOMAttr object
  </DT
><DT
><A
HREF="function.dom-domattr-isid.html"
>DOMAttr-&#62;isId()</A
>&nbsp;--&nbsp;
   Checks if attribute is a defined ID
  </DT
><DT
><A
HREF="function.dom-domcharacterdata-appenddata.html"
>DOMCharacterData-&#62;appendData()</A
>&nbsp;--&nbsp;
   Append the string to the end of the character data of the node
  </DT
><DT
><A
HREF="function.dom-domcharacterdata-deletedata.html"
>DOMCharacterData-&#62;deleteData()</A
>&nbsp;--&nbsp;
   Remove a range of characters from the node
  </DT
><DT
><A
HREF="function.dom-domcharacterdata-insertdata.html"
>DOMCharacterData-&#62;insertData()</A
>&nbsp;--&nbsp;
   Insert a string at the specified 16-bit unit offset
  </DT
><DT
><A
HREF="function.dom-domcharacterdata-replacedata.html"
>DOMCharacterData-&#62;replaceData()</A
>&nbsp;--&nbsp;
   Replace a substring within the DOMCharacterData node
  </DT
><DT
><A
HREF="function.dom-domcharacterdata-substringdata.html"
>DOMCharacterData-&#62;substringData()</A
>&nbsp;--&nbsp;
   Extracts a range of data from the node
  </DT
><DT
><A
HREF="function.dom-domcomment-construct.html"
>DOMComment-&#62;__construct()</A
>&nbsp;--&nbsp;
   Creates a new DOMComment object
  </DT
><DT
><A
HREF="function.dom-domdocument-construct.html"
>DOMDocument-&#62;__construct()</A
>&nbsp;--&nbsp;
   Creates a new DOMDocument object
  </DT
><DT
><A
HREF="function.dom-domdocument-createattribute.html"
>DOMDocument-&#62;createAttribute()</A
>&nbsp;--&nbsp;Create new attribute</DT
><DT
><A
HREF="function.dom-domdocument-createattributens.html"
>DOMDocument-&#62;createAttributeNS()</A
>&nbsp;--&nbsp;
   Create new attribute node with an associated namespace
  </DT
><DT
><A
HREF="function.dom-domdocument-createcdatasection.html"
>DOMDocument-&#62;createCDATASection()</A
>&nbsp;--&nbsp;Create new cdata node</DT
><DT
><A
HREF="function.dom-domdocument-createcomment.html"
>DOMDocument-&#62;createComment()</A
>&nbsp;--&nbsp;Create new comment node</DT
><DT
><A
HREF="function.dom-domdocument-createdocumentfragment.html"
>DOMDocument-&#62;createDocumentFragment()</A
>&nbsp;--&nbsp;Create new document fragment</DT
><DT
><A
HREF="function.dom-domdocument-createelement.html"
>DOMDocument-&#62;createElement()</A
>&nbsp;--&nbsp;Create new element node</DT
><DT
><A
HREF="function.dom-domdocument-createelementns.html"
>DOMDocument-&#62;createElementNS()</A
>&nbsp;--&nbsp;
   Create new element node with an associated namespace
  </DT
><DT
><A
HREF="function.dom-domdocument-createentityreference.html"
>DOMDocument-&#62;createEntityReference()</A
>&nbsp;--&nbsp;Create new entity reference node</DT
><DT
><A
HREF="function.dom-domdocument-createprocessinginstruction.html"
>DOMDocument-&#62;createProcessingInstruction()</A
>&nbsp;--&nbsp;Creates new PI node</DT
><DT
><A
HREF="function.dom-domdocument-createtextnode.html"
>DOMDocument-&#62;createTextNode()</A
>&nbsp;--&nbsp;Create new text node</DT
><DT
><A
HREF="function.dom-domdocument-getelementbyid.html"
>DOMDocument-&#62;getElementById()</A
>&nbsp;--&nbsp;Searches for an element with a certain id</DT
><DT
><A
HREF="function.dom-domdocument-getelementsbytagname.html"
>DOMDocument-&#62;getElementsByTagName()</A
>&nbsp;--&nbsp;Searches for all elements with given tag name</DT
><DT
><A
HREF="function.dom-domdocument-getelementsbytagnamens.html"
>DOMDocument-&#62;getElementsByTagNameNS()</A
>&nbsp;--&nbsp;
   Searches for all elements with given tag name in specified namespace
  </DT
><DT
><A
HREF="function.dom-domdocument-importnode.html"
>DOMDocument-&#62;importNode()</A
>&nbsp;--&nbsp;Import node into current document</DT
><DT
><A
HREF="function.dom-domdocument-load.html"
>DOMDocument-&#62;load()</A
>&nbsp;--&nbsp;
   Load XML from a file
  </DT
><DT
><A
HREF="function.dom-domdocument-loadhtml.html"
>DOMDocument-&#62;loadHTML()</A
>&nbsp;--&nbsp;
   Load HTML from a string
  </DT
><DT
><A
HREF="function.dom-domdocument-loadhtmlfile.html"
>DOMDocument-&#62;loadHTMLFile()</A
>&nbsp;--&nbsp;
   Load HTML from a file
  </DT
><DT
><A
HREF="function.dom-domdocument-loadxml.html"
>DOMDocument-&#62;loadXML()</A
>&nbsp;--&nbsp;
   Load XML from a string
  </DT
><DT
><A
HREF="function.dom-domdocument-normalizedocument.html"
>DOMDocument-&#62;normalizeDocument()</A
>&nbsp;--&nbsp;Normalizes the document</DT
><DT
><A
HREF="function.dom-domdocument-registernodeclass.html"
>DOMDocument-&#62;registerNodeClass()</A
>&nbsp;--&nbsp;Register extended class used to create base node type</DT
><DT
><A
HREF="function.dom-domdocument-relaxngvalidate.html"
>DOMDocument-&#62;relaxNGValidate()</A
>&nbsp;--&nbsp;
   Performs relaxNG validation on the document
  </DT
><DT
><A
HREF="function.dom-domdocument-relaxngvalidatesource.html"
>DOMDocument-&#62;relaxNGValidateSource()</A
>&nbsp;--&nbsp;
   Performs relaxNG validation on the document
  </DT
><DT
><A
HREF="function.dom-domdocument-save.html"
>DOMDocument-&#62;save()</A
>&nbsp;--&nbsp;
    Dumps the internal XML tree back into a file
  </DT
><DT
><A
HREF="function.dom-domdocument-savehtml.html"
>DOMDocument-&#62;saveHTML()</A
>&nbsp;--&nbsp;
   Dumps the internal document into a string using HTML formatting
  </DT
><DT
><A
HREF="function.dom-domdocument-savehtmlfile.html"
>DOMDocument-&#62;saveHTMLFile()</A
>&nbsp;--&nbsp;
   Dumps the internal document into a file using HTML formatting
  </DT
><DT
><A
HREF="function.dom-domdocument-savexml.html"
>DOMDocument-&#62;saveXML()</A
>&nbsp;--&nbsp;
   Dumps the internal XML tree back into a string
  </DT
><DT
><A
HREF="function.dom-domdocument-schemavalidate.html"
>DOMDocument-&#62;schemaValidate()</A
>&nbsp;--&nbsp;
   Validates a document based on a schema
  </DT
><DT
><A
HREF="function.dom-domdocument-schemavalidatesource.html"
>DOMDocument-&#62;schemaValidateSource()</A
>&nbsp;--&nbsp;
   Validates a document based on a schema
  </DT
><DT
><A
HREF="function.dom-domdocument-validate.html"
>DOMDocument-&#62;validate()</A
>&nbsp;--&nbsp;
   Validates the document based on its DTD
  </DT
><DT
><A
HREF="function.dom-domdocument-xinclude.html"
>DOMDocument-&#62;xinclude()</A
>&nbsp;--&nbsp;
   Substitutes XIncludes in a DOMDocument Object
  </DT
><DT
><A
HREF="function.dom-domdocumentfragment-appendxml.html"
>DOMDocumentFragment-&#62;appendXML()</A
>&nbsp;--&nbsp;Append raw XML data</DT
><DT
><A
HREF="function.dom-domelement-construct.html"
>DOMElement-&#62;__construct()</A
>&nbsp;--&nbsp;
   Creates a new DOMElement object
  </DT
><DT
><A
HREF="function.dom-domelement-getattribute.html"
>DOMElement-&#62;getAttribute()</A
>&nbsp;--&nbsp;Returns value of attribute</DT
><DT
><A
HREF="function.dom-domelement-getattributenode.html"
>DOMElement-&#62;getAttributeNode()</A
>&nbsp;--&nbsp;Returns attribute node</DT
><DT
><A
HREF="function.dom-domelement-getattributenodens.html"
>DOMElement-&#62;getAttributeNodeNS()</A
>&nbsp;--&nbsp;
   Returns attribute node
  </DT
><DT
><A
HREF="function.dom-domelement-getattributens.html"
>DOMElement-&#62;getAttributeNS()</A
>&nbsp;--&nbsp;Returns value of attribute</DT
><DT
><A
HREF="function.dom-domelement-getelementsbytagname.html"
>DOMElement-&#62;getElementsByTagName()</A
>&nbsp;--&nbsp;Gets elements by tagname</DT
><DT
><A
HREF="function.dom-domelement-getelementsbytagnamens.html"
>DOMElement-&#62;getElementsByTagNameNS()</A
>&nbsp;--&nbsp;Get elements by namespaceURI and localName</DT
><DT
><A
HREF="function.dom-domelement-hasattribute.html"
>DOMElement-&#62;hasAttribute()</A
>&nbsp;--&nbsp;Checks to see if attribute exists</DT
><DT
><A
HREF="function.dom-domelement-hasattributens.html"
>DOMElement-&#62;hasAttributeNS()</A
>&nbsp;--&nbsp;
   Checks to see if attribute exists
  </DT
><DT
><A
HREF="function.dom-domelement-removeattribute.html"
>DOMElement-&#62;removeAttribute()</A
>&nbsp;--&nbsp;Removes attribute</DT
><DT
><A
HREF="function.dom-domelement-removeattributenode.html"
>DOMElement-&#62;removeAttributeNode()</A
>&nbsp;--&nbsp;Removes attribute</DT
><DT
><A
HREF="function.dom-domelement-removeattributens.html"
>DOMElement-&#62;removeAttributeNS()</A
>&nbsp;--&nbsp;Removes attribute</DT
><DT
><A
HREF="function.dom-domelement-setattribute.html"
>DOMElement-&#62;setAttribute()</A
>&nbsp;--&nbsp;Adds new attribute</DT
><DT
><A
HREF="function.dom-domelement-setattributenode.html"
>DOMElement-&#62;setAttributeNode()</A
>&nbsp;--&nbsp;Adds new attribute node to element</DT
><DT
><A
HREF="function.dom-domelement-setattributenodens.html"
>DOMElement-&#62;setAttributeNodeNS()</A
>&nbsp;--&nbsp;Adds new attribute node to element</DT
><DT
><A
HREF="function.dom-domelement-setattributens.html"
>DOMElement-&#62;setAttributeNS()</A
>&nbsp;--&nbsp;Adds new attribute</DT
><DT
><A
HREF="function.dom-domelement-setidattribute.html"
>DOMElement-&#62;setIdAttribute()</A
>&nbsp;--&nbsp;Declares the attribute specified by name to be of type ID</DT
><DT
><A
HREF="function.dom-domelement-setidattributenode.html"
>DOMElement-&#62;setIdAttributeNode()</A
>&nbsp;--&nbsp;Declares the attribute specified by node to be of type ID</DT
><DT
><A
HREF="function.dom-domelement-setidattributens.html"
>DOMElement-&#62;setIdAttributeNS()</A
>&nbsp;--&nbsp;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-&#62;__construct()</A
>&nbsp;--&nbsp;
   Creates a new DOMEntityReference object
  </DT
><DT
><A
HREF="function.dom-domimplementation-construct.html"
>DOMImplementation-&#62;__construct()</A
>&nbsp;--&nbsp;
   Creates a new DOMImplementation object
  </DT
><DT
><A
HREF="function.dom-domimplementation-createdocument.html"
>DOMImplementation-&#62;createDocument()</A
>&nbsp;--&nbsp;
   Creates a DOMDocument object of the specified type with its document element
  </DT
><DT
><A
HREF="function.dom-domimplementation-createdocumenttype.html"
>DOMImplementation-&#62;createDocumentType()</A
>&nbsp;--&nbsp;
   Creates an empty DOMDocumentType object
  </DT
><DT
><A
HREF="function.dom-domimplementation-hasfeature.html"
>DOMImplementation-&#62;hasFeature()</A
>&nbsp;--&nbsp;
   Test if the DOM implementation implements a specific feature
  </DT
><DT
><A
HREF="function.dom-domnamednodemap-getnameditem.html"
>DOMNamedNodeMap-&#62;getNamedItem()</A
>&nbsp;--&nbsp;
   Retrieves a node specified by name
  </DT
><DT
><A
HREF="function.dom-domnamednodemap-getnameditemns.html"
>DOMNamedNodeMap-&#62;getNamedItemNS()</A
>&nbsp;--&nbsp;
   Retrieves a node specified by local name and namespace URI
  </DT
><DT
><A
HREF="function.dom-domnamednodemap-item.html"
>DOMNamedNodeMap-&#62;item()</A
>&nbsp;--&nbsp;Retrieves a node specified by index</DT
><DT
><A
HREF="function.dom-domnode-appendchild.html"
>DOMNode-&#62;appendChild()</A
>&nbsp;--&nbsp;
   Adds new child at the end of the children
  </DT
><DT
><A
HREF="function.dom-domnode-clonenode.html"
>DOMNode-&#62;cloneNode()</A
>&nbsp;--&nbsp;
   Clones a node
  </DT
><DT
><A
HREF="function.dom-domnode-hasattributes.html"
>DOMNode-&#62;hasAttributes()</A
>&nbsp;--&nbsp;
   Checks if node has attributes
  </DT
><DT
><A
HREF="function.dom-domnode-haschildnodes.html"
>DOMNode-&#62;hasChildNodes()</A
>&nbsp;--&nbsp;
   Checks if node has children
  </DT
><DT
><A
HREF="function.dom-domnode-insertbefore.html"
>DOMNode-&#62;insertBefore()</A
>&nbsp;--&nbsp;
   Adds a new child before a reference node
  </DT
><DT
><A
HREF="function.dom-domnode-isdefaultnamespace.html"
>DOMNode-&#62;isDefaultNamespace()</A
>&nbsp;--&nbsp;Checks if the specified namespaceURI is the default namespace or not</DT
><DT
><A
HREF="function.dom-domnode-issamenode.html"
>DOMNode-&#62;isSameNode()</A
>&nbsp;--&nbsp;
   Indicates if two nodes are the same node
  </DT
><DT
><A
HREF="function.dom-domnode-issupported.html"
>DOMNode-&#62;isSupported()</A
>&nbsp;--&nbsp;
   Checks if feature is supported for specified version
  </DT
><DT
><A
HREF="function.dom-domnode-lookupnamespaceuri.html"
>DOMNode-&#62;lookupNamespaceURI()</A
>&nbsp;--&nbsp;
   Gets the namespace URI of the node based on the prefix
  </DT
><DT
><A
HREF="function.dom-domnode-lookupprefix.html"
>DOMNode-&#62;lookupPrefix()</A
>&nbsp;--&nbsp;
   Gets the namespace prefix of the node based on the namespace URI
  </DT
><DT
><A
HREF="function.dom-domnode-normalize.html"
>DOMNode-&#62;normalize()</A
>&nbsp;--&nbsp;
   Normalizes the node
  </DT
><DT
><A
HREF="function.dom-domnode-removechild.html"
>DOMNode-&#62;removeChild()</A
>&nbsp;--&nbsp;
   Removes child from list of children
  </DT
><DT
><A
HREF="function.dom-domnode-replacechild.html"
>DOMNode-&#62;replaceChild()</A
>&nbsp;--&nbsp;
   Replaces a child
  </DT
><DT
><A
HREF="function.dom-domnodelist-item.html"
>DOMNodelist-&#62;item()</A
>&nbsp;--&nbsp;
   Retrieves a node specified by index
  </DT
><DT
><A
HREF="function.dom-domprocessinginstruction-construct.html"
>DOMProcessingInstruction-&#62;__construct()</A
>&nbsp;--&nbsp;
   Creates a new DOMProcessingInstruction object
  </DT
><DT
><A
HREF="function.dom-domtext-construct.html"
>DOMText-&#62;__construct()</A
>&nbsp;--&nbsp;
   Creates a new DOMText object
  </DT
><DT
><A
HREF="function.dom-domtext-iswhitespaceinelementcontent.html"
>DOMText-&#62;isWhitespaceInElementContent()</A
>&nbsp;--&nbsp;
   Indicates whether this text node contains whitespace
  </DT
><DT
><A
HREF="function.dom-domtext-splittext.html"
>DOMText-&#62;splitText()</A
>&nbsp;--&nbsp;
   Breaks this node into two nodes at the specified offset
  </DT
><DT
><A
HREF="function.dom-domxpath-construct.html"
>DOMXPath-&#62;__construct()</A
>&nbsp;--&nbsp;
   Creates a new DOMXPath object
  </DT
><DT
><A
HREF="function.dom-domxpath-evaluate.html"
>DOMXPath-&#62;evaluate()</A
>&nbsp;--&nbsp;
   Evaluates the given XPath expression and returns a typed result if possible.
  </DT
><DT
><A
HREF="function.dom-domxpath-query.html"
>DOMXPath-&#62;query()</A
>&nbsp;--&nbsp;
   Evaluates the given XPath expression 
  </DT
><DT
><A
HREF="function.dom-domxpath-registernamespace.html"
>DOMXPath-&#62;registerNamespace()</A
>&nbsp;--&nbsp;
   Registers the namespace with the DOMXPath object
  </DT
><DT
><A
HREF="function.dom-import-simplexml.html"
>dom_import_simplexml</A
>&nbsp;--&nbsp;
   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-&#62;__construct()</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>