<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/refs.xml.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'book.dom.php',
    1 => 'DOM',
    2 => 'Document Object Model',
  ),
  'up' => 
  array (
    0 => 'refs.xml.php',
    1 => 'XML Manipulation',
  ),
  'prev' => 
  array (
    0 => 'refs.xml.php',
    1 => 'XML Manipulation',
  ),
  'next' => 
  array (
    0 => 'dom.setup.php',
    1 => 'Installing/Configuring',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/dom/book.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/book.dom.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="book.dom" class="book">
 
 <h1 class="title">Document Object Model</h1>
 

 <div id="intro.dom" class="preface">
  <h1 class="title">Introduction</h1>
  <p class="para">
   The DOM extension allows operations on XML and HTML documents through the DOM
   API with PHP.
  </p>
  <blockquote class="note"><p><strong class="note">Note</strong>: <p class="para">The DOM extension uses UTF-8 encoding. Use <span class="function"><a href="function.mb-convert-encoding.php" class="function">mb_convert_encoding()</a></span>, <span class="methodname"><a href="uconverter.transcode.php" class="methodname">UConverter::transcode()</a></span>, or <span class="function"><a href="function.iconv.php" class="function">iconv()</a></span> to handle other encodings.</p></p></blockquote>
 </div>

 







 




 



   



 




 




 




 



 




 




 




 




 




 




 





 





 





 





 



 




 





 





 



 




 




 






 



 



 



 



 


 



 



 



 



 



 



 



 



 



 



 



 



 



 



 



 



 



 


 



 



 



 



 




 

 

<ul class="chunklist chunklist_book"><li><a href="dom.setup.php">Installing/Configuring</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="dom.requirements.php">Requirements</a></li><li><a href="dom.installation.php">Installation</a></li></ul></li><li><a href="dom.constants.php">Predefined Constants</a></li><li><a href="dom.examples.php">Examples</a></li><li><a href="class.domattr.php">DOMAttr</a> — The DOMAttr class<ul class="chunklist chunklist_book chunklist_children"><li><a href="domattr.construct.php">DOMAttr::__construct</a> — Creates a new DOMAttr object</li><li><a href="domattr.isid.php">DOMAttr::isId</a> — Checks if attribute is a defined ID</li></ul></li><li><a href="class.domcdatasection.php">DOMCdataSection</a> — The DOMCdataSection class<ul class="chunklist chunklist_book chunklist_children"><li><a href="domcdatasection.construct.php">DOMCdataSection::__construct</a> — Constructs a new DOMCdataSection object</li></ul></li><li><a href="class.domcharacterdata.php">DOMCharacterData</a> — The DOMCharacterData class<ul class="chunklist chunklist_book chunklist_children"><li><a href="domcharacterdata.after.php">DOMCharacterData::after</a> — Adds nodes after the character data</li><li><a href="domcharacterdata.appenddata.php">DOMCharacterData::appendData</a> — Append the string to the end of the character data of the node</li><li><a href="domcharacterdata.before.php">DOMCharacterData::before</a> — Adds nodes before the character data</li><li><a href="domcharacterdata.deletedata.php">DOMCharacterData::deleteData</a> — Remove a range of characters from the character data</li><li><a href="domcharacterdata.insertdata.php">DOMCharacterData::insertData</a> — Insert a string at the specified UTF-8 codepoint offset</li><li><a href="domcharacterdata.remove.php">DOMCharacterData::remove</a> — Removes the character data node</li><li><a href="domcharacterdata.replacedata.php">DOMCharacterData::replaceData</a> — Replace a substring within the character data</li><li><a href="domcharacterdata.replacewith.php">DOMCharacterData::replaceWith</a> — Replaces the character data with new nodes</li><li><a href="domcharacterdata.substringdata.php">DOMCharacterData::substringData</a> — Extracts a range of data from the character data</li></ul></li><li><a href="class.domchildnode.php">DOMChildNode</a> — The DOMChildNode interface<ul class="chunklist chunklist_book chunklist_children"><li><a href="domchildnode.after.php">DOMChildNode::after</a> — Adds nodes after the node</li><li><a href="domchildnode.before.php">DOMChildNode::before</a> — Adds nodes before the node</li><li><a href="domchildnode.remove.php">DOMChildNode::remove</a> — Removes the node</li><li><a href="domchildnode.replacewith.php">DOMChildNode::replaceWith</a> — Replaces the node with new nodes</li></ul></li><li><a href="class.domcomment.php">DOMComment</a> — The DOMComment class<ul class="chunklist chunklist_book chunklist_children"><li><a href="domcomment.construct.php">DOMComment::__construct</a> — Creates a new DOMComment object</li></ul></li><li><a href="class.domdocument.php">DOMDocument</a> — The DOMDocument class<ul class="chunklist chunklist_book chunklist_children"><li><a href="domdocument.adoptnode.php">DOMDocument::adoptNode</a> — Transfer a node from another document</li><li><a href="domdocument.append.php">DOMDocument::append</a> — Appends nodes after the last child node</li><li><a href="domdocument.construct.php">DOMDocument::__construct</a> — Creates a new DOMDocument object</li><li><a href="domdocument.createattribute.php">DOMDocument::createAttribute</a> — Create new attribute</li><li><a href="domdocument.createattributens.php">DOMDocument::createAttributeNS</a> — Create new attribute node with an associated namespace</li><li><a href="domdocument.createcdatasection.php">DOMDocument::createCDATASection</a> — Create new cdata node</li><li><a href="domdocument.createcomment.php">DOMDocument::createComment</a> — Create new comment node</li><li><a href="domdocument.createdocumentfragment.php">DOMDocument::createDocumentFragment</a> — Create new document fragment</li><li><a href="domdocument.createelement.php">DOMDocument::createElement</a> — Create new element node</li><li><a href="domdocument.createelementns.php">DOMDocument::createElementNS</a> — Create new element node with an associated namespace</li><li><a href="domdocument.createentityreference.php">DOMDocument::createEntityReference</a> — Create new entity reference node</li><li><a href="domdocument.createprocessinginstruction.php">DOMDocument::createProcessingInstruction</a> — Creates new PI node</li><li><a href="domdocument.createtextnode.php">DOMDocument::createTextNode</a> — Create new text node</li><li><a href="domdocument.getelementbyid.php">DOMDocument::getElementById</a> — Searches for an element with a certain id</li><li><a href="domdocument.getelementsbytagname.php">DOMDocument::getElementsByTagName</a> — Searches for all elements with given local tag name</li><li><a href="domdocument.getelementsbytagnamens.php">DOMDocument::getElementsByTagNameNS</a> — Searches for all elements with given tag name in specified namespace</li><li><a href="domdocument.importnode.php">DOMDocument::importNode</a> — Import node into current document</li><li><a href="domdocument.load.php">DOMDocument::load</a> — Load XML from a file</li><li><a href="domdocument.loadhtml.php">DOMDocument::loadHTML</a> — Load HTML from a string</li><li><a href="domdocument.loadhtmlfile.php">DOMDocument::loadHTMLFile</a> — Load HTML from a file</li><li><a href="domdocument.loadxml.php">DOMDocument::loadXML</a> — Load XML from a string</li><li><a href="domdocument.normalizedocument.php">DOMDocument::normalizeDocument</a> — Normalizes the document</li><li><a href="domdocument.prepend.php">DOMDocument::prepend</a> — Prepends nodes before the first child node</li><li><a href="domdocument.registernodeclass.php">DOMDocument::registerNodeClass</a> — Register extended class used to create base node type</li><li><a href="domdocument.relaxngvalidate.php">DOMDocument::relaxNGValidate</a> — Performs relaxNG validation on the document</li><li><a href="domdocument.relaxngvalidatesource.php">DOMDocument::relaxNGValidateSource</a> — Performs relaxNG validation on the document</li><li><a href="domdocument.replacechildren.php">DOMDocument::replaceChildren</a> — Replace children in document</li><li><a href="domdocument.save.php">DOMDocument::save</a> — Dumps the internal XML tree back into a file</li><li><a href="domdocument.savehtml.php">DOMDocument::saveHTML</a> — Dumps the internal document into a string using HTML formatting</li><li><a href="domdocument.savehtmlfile.php">DOMDocument::saveHTMLFile</a> — Dumps the internal document into a file using HTML formatting</li><li><a href="domdocument.savexml.php">DOMDocument::saveXML</a> — Dumps the internal XML tree back into a string</li><li><a href="domdocument.schemavalidate.php">DOMDocument::schemaValidate</a> — Validates a document based on a schema. Only XML Schema 1.0 is supported.</li><li><a href="domdocument.schemavalidatesource.php">DOMDocument::schemaValidateSource</a> — Validates a document based on a schema</li><li><a href="domdocument.validate.php">DOMDocument::validate</a> — Validates the document based on its DTD</li><li><a href="domdocument.xinclude.php">DOMDocument::xinclude</a> — Substitutes XIncludes in a DOMDocument Object</li></ul></li><li><a href="class.domdocumentfragment.php">DOMDocumentFragment</a> — The DOMDocumentFragment class<ul class="chunklist chunklist_book chunklist_children"><li><a href="domdocumentfragment.append.php">DOMDocumentFragment::append</a> — Appends nodes after the last child node</li><li><a href="domdocumentfragment.appendxml.php">DOMDocumentFragment::appendXML</a> — Append raw XML data</li><li><a href="domdocumentfragment.construct.php">DOMDocumentFragment::__construct</a> — Constructs a DOMDocumentFragment object</li><li><a href="domdocumentfragment.prepend.php">DOMDocumentFragment::prepend</a> — Prepends nodes before the first child node</li><li><a href="domdocumentfragment.replacechildren.php">DOMDocumentFragment::replaceChildren</a> — Replace children in fragment</li></ul></li><li><a href="class.domdocumenttype.php">DOMDocumentType</a> — The DOMDocumentType class</li><li><a href="class.domelement.php">DOMElement</a> — The DOMElement class<ul class="chunklist chunklist_book chunklist_children"><li><a href="domelement.after.php">DOMElement::after</a> — Adds nodes after the element</li><li><a href="domelement.append.php">DOMElement::append</a> — Appends nodes after the last child node</li><li><a href="domelement.before.php">DOMElement::before</a> — Adds nodes before the element</li><li><a href="domelement.construct.php">DOMElement::__construct</a> — Creates a new DOMElement object</li><li><a href="domelement.getattribute.php">DOMElement::getAttribute</a> — Returns value of attribute</li><li><a href="domelement.getattributenames.php">DOMElement::getAttributeNames</a> — Get attribute names</li><li><a href="domelement.getattributenode.php">DOMElement::getAttributeNode</a> — Returns attribute node</li><li><a href="domelement.getattributenodens.php">DOMElement::getAttributeNodeNS</a> — Returns attribute node</li><li><a href="domelement.getattributens.php">DOMElement::getAttributeNS</a> — Returns value of attribute</li><li><a href="domelement.getelementsbytagname.php">DOMElement::getElementsByTagName</a> — Gets elements by tagname</li><li><a href="domelement.getelementsbytagnamens.php">DOMElement::getElementsByTagNameNS</a> — Get elements by namespaceURI and localName</li><li><a href="domelement.hasattribute.php">DOMElement::hasAttribute</a> — Checks to see if attribute exists</li><li><a href="domelement.hasattributens.php">DOMElement::hasAttributeNS</a> — Checks to see if attribute exists</li><li><a href="domelement.insertadjacentelement.php">DOMElement::insertAdjacentElement</a> — Insert adjacent element</li><li><a href="domelement.insertadjacenttext.php">DOMElement::insertAdjacentText</a> — Insert adjacent text</li><li><a href="domelement.prepend.php">DOMElement::prepend</a> — Prepends nodes before the first child node</li><li><a href="domelement.remove.php">DOMElement::remove</a> — Removes the element</li><li><a href="domelement.removeattribute.php">DOMElement::removeAttribute</a> — Removes attribute</li><li><a href="domelement.removeattributenode.php">DOMElement::removeAttributeNode</a> — Removes attribute</li><li><a href="domelement.removeattributens.php">DOMElement::removeAttributeNS</a> — Removes attribute</li><li><a href="domelement.replacechildren.php">DOMElement::replaceChildren</a> — Replace children in element</li><li><a href="domelement.replacewith.php">DOMElement::replaceWith</a> — Replaces the element with new nodes</li><li><a href="domelement.setattribute.php">DOMElement::setAttribute</a> — Adds new or modifies existing attribute</li><li><a href="domelement.setattributenode.php">DOMElement::setAttributeNode</a> — Adds new attribute node to element</li><li><a href="domelement.setattributenodens.php">DOMElement::setAttributeNodeNS</a> — Adds new attribute node to element</li><li><a href="domelement.setattributens.php">DOMElement::setAttributeNS</a> — Adds new attribute</li><li><a href="domelement.setidattribute.php">DOMElement::setIdAttribute</a> — Declares the attribute specified by name to be of type ID</li><li><a href="domelement.setidattributenode.php">DOMElement::setIdAttributeNode</a> — Declares the attribute specified by node to be of type ID</li><li><a href="domelement.setidattributens.php">DOMElement::setIdAttributeNS</a> — Declares the attribute specified by local name and namespace URI to be of type ID</li><li><a href="domelement.toggleattribute.php">DOMElement::toggleAttribute</a> — Toggle attribute</li></ul></li><li><a href="class.domentity.php">DOMEntity</a> — The DOMEntity class</li><li><a href="class.domentityreference.php">DOMEntityReference</a> — The DOMEntityReference class<ul class="chunklist chunklist_book chunklist_children"><li><a href="domentityreference.construct.php">DOMEntityReference::__construct</a> — Creates a new DOMEntityReference object</li></ul></li><li><a href="class.domexception.php">DOMException</a> — The DOMException / Dom\Exception class</li><li><a href="class.domimplementation.php">DOMImplementation</a> — The DOMImplementation class<ul class="chunklist chunklist_book chunklist_children"><li><a href="domimplementation.construct.php">DOMImplementation::__construct</a> — Creates a new DOMImplementation object</li><li><a href="domimplementation.createdocument.php">DOMImplementation::createDocument</a> — Creates a DOMDocument object of the specified type with its document element</li><li><a href="domimplementation.createdocumenttype.php">DOMImplementation::createDocumentType</a> — Creates an empty DOMDocumentType object</li><li><a href="domimplementation.hasfeature.php">DOMImplementation::hasFeature</a> — Test if the DOM implementation implements a specific feature</li></ul></li><li><a href="class.domnamednodemap.php">DOMNamedNodeMap</a> — The DOMNamedNodeMap class<ul class="chunklist chunklist_book chunklist_children"><li><a href="domnamednodemap.count.php">DOMNamedNodeMap::count</a> — Get number of nodes in the map</li><li><a href="domnamednodemap.getiterator.php">DOMNamedNodeMap::getIterator</a> — Retrieve an external iterator</li><li><a href="domnamednodemap.getnameditem.php">DOMNamedNodeMap::getNamedItem</a> — Retrieves a node specified by name</li><li><a href="domnamednodemap.getnameditemns.php">DOMNamedNodeMap::getNamedItemNS</a> — Retrieves a node specified by local name and namespace URI</li><li><a href="domnamednodemap.item.php">DOMNamedNodeMap::item</a> — Retrieves a node specified by index</li></ul></li><li><a href="class.domnamespacenode.php">DOMNameSpaceNode</a> — The DOMNameSpaceNode class<ul class="chunklist chunklist_book chunklist_children"><li><a href="domnamespacenode.sleep.php">DOMNameSpaceNode::__sleep</a> — Forbids serialization unless serialization methods are implemented in a subclass</li><li><a href="domnamespacenode.wakeup.php">DOMNameSpaceNode::__wakeup</a> — Forbids unserialization unless unserialization methods are implemented in a subclass</li></ul></li><li><a href="class.domnode.php">DOMNode</a> — The DOMNode class<ul class="chunklist chunklist_book chunklist_children"><li><a href="domnode.appendchild.php">DOMNode::appendChild</a> — Adds new child at the end of the children</li><li><a href="domnode.c14n.php">DOMNode::C14N</a> — Canonicalize nodes to a string</li><li><a href="domnode.c14nfile.php">DOMNode::C14NFile</a> — Canonicalize nodes to a file</li><li><a href="domnode.clonenode.php">DOMNode::cloneNode</a> — Clones a node</li><li><a href="domnode.comparedocumentposition.php">DOMNode::compareDocumentPosition</a> — Compares the position of two nodes</li><li><a href="domnode.contains.php">DOMNode::contains</a> — Checks if node contains other node</li><li><a href="domnode.getlineno.php">DOMNode::getLineNo</a> — Get line number for a node</li><li><a href="domnode.getnodepath.php">DOMNode::getNodePath</a> — Get an XPath for a node</li><li><a href="domnode.getrootnode.php">DOMNode::getRootNode</a> — Get root node</li><li><a href="domnode.hasattributes.php">DOMNode::hasAttributes</a> — Checks if node has attributes</li><li><a href="domnode.haschildnodes.php">DOMNode::hasChildNodes</a> — Checks if node has children</li><li><a href="domnode.insertbefore.php">DOMNode::insertBefore</a> — Adds a new child before a reference node</li><li><a href="domnode.isdefaultnamespace.php">DOMNode::isDefaultNamespace</a> — Checks if the specified namespaceURI is the default namespace or not</li><li><a href="domnode.isequalnode.php">DOMNode::isEqualNode</a> — Checks that both nodes are equal</li><li><a href="domnode.issamenode.php">DOMNode::isSameNode</a> — Indicates if two nodes are the same node</li><li><a href="domnode.issupported.php">DOMNode::isSupported</a> — Checks if feature is supported for specified version</li><li><a href="domnode.lookupnamespaceuri.php">DOMNode::lookupNamespaceURI</a> — Gets the namespace URI of the node based on the prefix</li><li><a href="domnode.lookupprefix.php">DOMNode::lookupPrefix</a> — Gets the namespace prefix of the node based on the namespace URI</li><li><a href="domnode.normalize.php">DOMNode::normalize</a> — Normalizes the node</li><li><a href="domnode.removechild.php">DOMNode::removeChild</a> — Removes child from list of children</li><li><a href="domnode.replacechild.php">DOMNode::replaceChild</a> — Replaces a child</li><li><a href="domnode.sleep.php">DOMNode::__sleep</a> — Forbids serialization unless serialization methods are implemented in a subclass</li><li><a href="domnode.wakeup.php">DOMNode::__wakeup</a> — Forbids unserialization unless unserialization methods are implemented in a subclass</li></ul></li><li><a href="class.domnodelist.php">DOMNodeList</a> — The DOMNodeList class<ul class="chunklist chunklist_book chunklist_children"><li><a href="domnodelist.count.php">DOMNodeList::count</a> — Get number of nodes in the list</li><li><a href="domnodelist.getiterator.php">DOMNodeList::getIterator</a> — Retrieve an external iterator</li><li><a href="domnodelist.item.php">DOMNodeList::item</a> — Retrieves a node specified by index</li></ul></li><li><a href="class.domnotation.php">DOMNotation</a> — The DOMNotation class</li><li><a href="class.domparentnode.php">DOMParentNode</a> — The DOMParentNode interface<ul class="chunklist chunklist_book chunklist_children"><li><a href="domparentnode.append.php">DOMParentNode::append</a> — Appends nodes after the last child node</li><li><a href="domparentnode.prepend.php">DOMParentNode::prepend</a> — Prepends nodes before the first child node</li><li><a href="domparentnode.replacechildren.php">DOMParentNode::replaceChildren</a> — Replace children in node</li></ul></li><li><a href="class.domprocessinginstruction.php">DOMProcessingInstruction</a> — The DOMProcessingInstruction class<ul class="chunklist chunklist_book chunklist_children"><li><a href="domprocessinginstruction.construct.php">DOMProcessingInstruction::__construct</a> — Creates a new DOMProcessingInstruction object</li></ul></li><li><a href="class.domtext.php">DOMText</a> — The DOMText class<ul class="chunklist chunklist_book chunklist_children"><li><a href="domtext.construct.php">DOMText::__construct</a> — Creates a new DOMText object</li><li><a href="domtext.iselementcontentwhitespace.php">DOMText::isElementContentWhitespace</a> — Returns whether this text node contains whitespace in element content</li><li><a href="domtext.iswhitespaceinelementcontent.php">DOMText::isWhitespaceInElementContent</a> — Indicates whether this text node contains whitespace</li><li><a href="domtext.splittext.php">DOMText::splitText</a> — Breaks this node into two nodes at the specified offset</li></ul></li><li><a href="class.domxpath.php">DOMXPath</a> — The DOMXPath class<ul class="chunklist chunklist_book chunklist_children"><li><a href="domxpath.construct.php">DOMXPath::__construct</a> — Creates a new DOMXPath object</li><li><a href="domxpath.evaluate.php">DOMXPath::evaluate</a> — Evaluates the given XPath expression and returns a typed result if possible</li><li><a href="domxpath.query.php">DOMXPath::query</a> — Evaluates the given XPath expression</li><li><a href="domxpath.quote.php">DOMXPath::quote</a> — Quotes a string for use in an XPath expression</li><li><a href="domxpath.registernamespace.php">DOMXPath::registerNamespace</a> — Registers the namespace with the DOMXPath object</li><li><a href="domxpath.registerphpfunctionns.php">DOMXPath::registerPhpFunctionNS</a> — Register a PHP functions as namespaced XPath function</li><li><a href="domxpath.registerphpfunctions.php">DOMXPath::registerPhpFunctions</a> — Register PHP functions as XPath functions</li></ul></li><li><a href="enum.dom-adjacentposition.php">Dom\AdjacentPosition</a> — The Dom\AdjacentPosition Enum</li><li><a href="class.dom-attr.php">Dom\Attr</a> — The Dom\Attr class<ul class="chunklist chunklist_book chunklist_children"><li><a href="dom-attr.isid.php">Dom\Attr::isId</a> — Checks if attribute is a defined ID</li><li><a href="dom-attr.rename.php">Dom\Attr::rename</a> — Changes the qualified name or namespace of an attribute</li></ul></li><li><a href="class.dom-cdatasection.php">Dom\CDATASection</a> — The Dom\CDATASection class</li><li><a href="class.dom-characterdata.php">Dom\CharacterData</a> — The Dom\CharacterData class<ul class="chunklist chunklist_book chunklist_children"><li><a href="dom-characterdata.after.php">Dom\CharacterData::after</a> — Adds nodes after the character data</li><li><a href="dom-characterdata.appenddata.php">Dom\CharacterData::appendData</a> — Append the string to the end of the character data of the node</li><li><a href="dom-characterdata.before.php">Dom\CharacterData::before</a> — Adds nodes before the character data</li><li><a href="dom-characterdata.deletedata.php">Dom\CharacterData::deleteData</a> — Remove a range of characters from the character data</li><li><a href="dom-characterdata.insertdata.php">Dom\CharacterData::insertData</a> — Insert a string at the specified UTF-8 codepoint offset</li><li><a href="dom-characterdata.remove.php">Dom\CharacterData::remove</a> — Removes the character data node</li><li><a href="dom-characterdata.replacedata.php">Dom\CharacterData::replaceData</a> — Replace a substring within the character data</li><li><a href="dom-characterdata.replacewith.php">Dom\CharacterData::replaceWith</a> — Replaces the character data with new nodes</li><li><a href="dom-characterdata.substringdata.php">Dom\CharacterData::substringData</a> — Extracts a range of data from the character data</li></ul></li><li><a href="class.dom-childnode.php">Dom\ChildNode</a> — The Dom\ChildNode interface<ul class="chunklist chunklist_book chunklist_children"><li><a href="dom-childnode.after.php">Dom\ChildNode::after</a> — Adds nodes after the node</li><li><a href="dom-childnode.before.php">Dom\ChildNode::before</a> — Adds nodes before the node</li><li><a href="dom-childnode.remove.php">Dom\ChildNode::remove</a> — Removes the node</li><li><a href="dom-childnode.replacewith.php">Dom\ChildNode::replaceWith</a> — Replaces the node with new nodes</li></ul></li><li><a href="class.dom-comment.php">Dom\Comment</a> — The Dom\Comment class</li><li><a href="class.dom-document.php">Dom\Document</a> — The Dom\Document class</li><li><a href="class.dom-documentfragment.php">Dom\DocumentFragment</a> — The Dom\DocumentFragment class</li><li><a href="class.dom-documenttype.php">Dom\DocumentType</a> — The Dom\DocumentType class</li><li><a href="class.dom-dtdnamednodemap.php">Dom\DtdNamedNodeMap</a> — The Dom\DtdNamedNodeMap class</li><li><a href="class.dom-element.php">Dom\Element</a> — The Dom\Element class</li><li><a href="class.dom-entity.php">Dom\Entity</a> — The Dom\Entity class</li><li><a href="class.dom-entityreference.php">Dom\EntityReference</a> — The Dom\EntityReference class</li><li><a href="class.dom-htmlcollection.php">Dom\HTMLCollection</a> — The Dom\HTMLCollection class</li><li><a href="class.dom-htmldocument.php">Dom\HTMLDocument</a> — The Dom\HTMLDocument class<ul class="chunklist chunklist_book chunklist_children"><li><a href="dom-htmldocument.createempty.php">Dom\HTMLDocument::createEmpty</a> — Creates an empty HTML document</li><li><a href="dom-htmldocument.createfromfile.php">Dom\HTMLDocument::createFromFile</a> — Parses an HTML document from a file</li><li><a href="dom-htmldocument.createfromstring.php">Dom\HTMLDocument::createFromString</a> — Parses an HTML document from a string</li><li><a href="dom-htmldocument.savehtml.php">Dom\HTMLDocument::saveHtml</a> — Serializes the document as an HTML string</li><li><a href="dom-htmldocument.savehtmlfile.php">Dom\HTMLDocument::saveHtmlFile</a> — Serializes the document as an HTML file</li><li><a href="dom-htmldocument.savexml.php">Dom\HTMLDocument::saveXml</a> — Serializes the document as an XML string</li><li><a href="dom-htmldocument.savexmlfile.php">Dom\HTMLDocument::saveXmlFile</a> — Serializes the document as an XML file</li></ul></li><li><a href="class.dom-htmlelement.php">Dom\HTMLElement</a> — The Dom\HTMLElement class</li><li><a href="class.dom-implementation.php">Dom\Implementation</a> — The Dom\Implementation class</li><li><a href="class.dom-namednodemap.php">Dom\NamedNodeMap</a> — The Dom\NamedNodeMap class</li><li><a href="class.dom-namespaceinfo.php">Dom\NamespaceInfo</a> — The Dom\NamespaceInfo class</li><li><a href="class.dom-node.php">Dom\Node</a> — The Dom\Node class</li><li><a href="class.dom-nodelist.php">Dom\NodeList</a> — The Dom\NodeList class</li><li><a href="class.dom-notation.php">Dom\Notation</a> — The Dom\Notation class</li><li><a href="class.dom-parentnode.php">Dom\ParentNode</a> — The Dom\ParentNode interface<ul class="chunklist chunklist_book chunklist_children"><li><a href="dom-parentnode.append.php">Dom\ParentNode::append</a> — Appends nodes after the last child node</li><li><a href="dom-parentnode.prepend.php">Dom\ParentNode::prepend</a> — Prepends nodes before the first child node</li><li><a href="dom-parentnode.queryselector.php">Dom\ParentNode::querySelector</a> — Returns the first element that matches the CSS selectors</li><li><a href="dom-parentnode.queryselectorall.php">Dom\ParentNode::querySelectorAll</a> — Returns a collection of elements that match the CSS selectors</li><li><a href="dom-parentnode.replacechildren.php">Dom\ParentNode::replaceChildren</a> — Replace children in node</li></ul></li><li><a href="class.dom-processinginstruction.php">Dom\ProcessingInstruction</a> — The Dom\ProcessingInstruction class</li><li><a href="class.dom-text.php">Dom\Text</a> — The Dom\Text class<ul class="chunklist chunklist_book chunklist_children"><li><a href="dom-text.splittext.php">Dom\Text::splitText</a> — Breaks this node into two nodes at the specified offset</li></ul></li><li><a href="class.dom-tokenlist.php">Dom\TokenList</a> — The Dom\TokenList class<ul class="chunklist chunklist_book chunklist_children"><li><a href="dom-tokenlist.add.php">Dom\TokenList::add</a> — Adds the given tokens to the list</li><li><a href="dom-tokenlist.contains.php">Dom\TokenList::contains</a> — Returns whether the list contains a given token</li><li><a href="dom-tokenlist.count.php">Dom\TokenList::count</a> — Returns the number of tokens in the list</li><li><a href="dom-tokenlist.getiterator.php">Dom\TokenList::getIterator</a> — Returns an iterator over the token list</li><li><a href="dom-tokenlist.item.php">Dom\TokenList::item</a> — Returns a token from the list</li><li><a href="dom-tokenlist.remove.php">Dom\TokenList::remove</a> — Removes the given tokens from the list</li><li><a href="dom-tokenlist.replace.php">Dom\TokenList::replace</a> — Replaces a token in the list with another one</li><li><a href="dom-tokenlist.supports.php">Dom\TokenList::supports</a> — Returns whether the given token is supported</li><li><a href="dom-tokenlist.toggle.php">Dom\TokenList::toggle</a> — Toggles the presence of a token in the list</li></ul></li><li><a href="class.dom-xmldocument.php">Dom\XMLDocument</a> — The Dom\XMLDocument class</li><li><a href="class.dom-xpath.php">Dom\XPath</a> — The Dom\XPath class</li><li><a href="ref.dom.php">DOM Functions</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.dom-import-simplexml.php">dom_import_simplexml</a> — Gets a DOMAttr or DOMElement object from a
   SimpleXMLElement object</li><li><a href="function.dom-ns-import-simplexml.php">Dom\import_simplexml</a> — Gets a Dom\Attr or Dom\Element object from a
   SimpleXMLElement object</li></ul></li></ul></div><?php manual_footer($setup); ?>