Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 258

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Document Object Model</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="refs.xml.html">XML Manipulation</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="intro.dom.html">Introduction</a></div>
 <div class="up"><a href="refs.xml.html">XML Manipulation</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="book.dom" class="book">
 
 <h1 class="title">Document Object Model</h1>
 

 
 
 







 


 
 


 



   



 


 



 






 


 



 


 



 


 



 


 



 


 



 


 



 


 



 



 



 



 



 



 



 



 



 


 



 



 



 



 



 


 



 


 



 



 



 
 

 
 
<ul class="chunklist chunklist_book"><li><a href="intro.dom.html">Introduction</a></li><li><a href="dom.setup.html">Installing/Configuring</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="dom.requirements.html">Requirements</a></li><li><a href="dom.installation.html">Installation</a></li><li><a href="dom.configuration.html">Runtime Configuration</a></li><li><a href="dom.resources.html">Resource Types</a></li></ul></li><li><a href="dom.constants.html">Predefined Constants</a></li><li><a href="dom.examples.html">Examples</a></li><li><a href="class.domattr.html">DOMAttr</a> — The DOMAttr class<ul class="chunklist chunklist_book chunklist_children"><li><a href="domattr.construct.html">DOMAttr::__construct</a> — Creates a new DOMAttr object</li><li><a href="domattr.isid.html">DOMAttr::isId</a> — Checks if attribute is a defined ID</li></ul></li><li><a href="class.domcdatasection.html">DOMCdataSection</a> — The DOMCdataSection class<ul class="chunklist chunklist_book chunklist_children"><li><a href="domcdatasection.construct.html">DOMCdataSection::__construct</a> — Constructs a new DOMCdataSection object</li></ul></li><li><a href="class.domcharacterdata.html">DOMCharacterData</a> — The DOMCharacterData class<ul class="chunklist chunklist_book chunklist_children"><li><a href="domcharacterdata.appenddata.html">DOMCharacterData::appendData</a> — Append the string to the end of the character data of the node</li><li><a href="domcharacterdata.deletedata.html">DOMCharacterData::deleteData</a> — Remove a range of characters from the node</li><li><a href="domcharacterdata.insertdata.html">DOMCharacterData::insertData</a> — Insert a string at the specified 16-bit unit offset</li><li><a href="domcharacterdata.replacedata.html">DOMCharacterData::replaceData</a> — Replace a substring within the DOMCharacterData node</li><li><a href="domcharacterdata.substringdata.html">DOMCharacterData::substringData</a> — Extracts a range of data from the node</li></ul></li><li><a href="class.domcomment.html">DOMComment</a> — The DOMComment class<ul class="chunklist chunklist_book chunklist_children"><li><a href="domcomment.construct.html">DOMComment::__construct</a> — Creates a new DOMComment object</li></ul></li><li><a href="class.domdocument.html">DOMDocument</a> — The DOMDocument class<ul class="chunklist chunklist_book chunklist_children"><li><a href="domdocument.construct.html">DOMDocument::__construct</a> — Creates a new DOMDocument object</li><li><a href="domdocument.createattribute.html">DOMDocument::createAttribute</a> — Create new attribute</li><li><a href="domdocument.createattributens.html">DOMDocument::createAttributeNS</a> — Create new attribute node with an associated namespace</li><li><a href="domdocument.createcdatasection.html">DOMDocument::createCDATASection</a> — Create new cdata node</li><li><a href="domdocument.createcomment.html">DOMDocument::createComment</a> — Create new comment node</li><li><a href="domdocument.createdocumentfragment.html">DOMDocument::createDocumentFragment</a> — Create new document fragment</li><li><a href="domdocument.createelement.html">DOMDocument::createElement</a> — Create new element node</li><li><a href="domdocument.createelementns.html">DOMDocument::createElementNS</a> — Create new element node with an associated namespace</li><li><a href="domdocument.createentityreference.html">DOMDocument::createEntityReference</a> — Create new entity reference node</li><li><a href="domdocument.createprocessinginstruction.html">DOMDocument::createProcessingInstruction</a> — Creates new PI node</li><li><a href="domdocument.createtextnode.html">DOMDocument::createTextNode</a> — Create new text node</li><li><a href="domdocument.getelementbyid.html">DOMDocument::getElementById</a> — Searches for an element with a certain id</li><li><a href="domdocument.getelementsbytagname.html">DOMDocument::getElementsByTagName</a> — Searches for all elements with given local tag name</li><li><a href="domdocument.getelementsbytagnamens.html">DOMDocument::getElementsByTagNameNS</a> — Searches for all elements with given tag name in specified namespace</li><li><a href="domdocument.importnode.html">DOMDocument::importNode</a> — Import node into current document</li><li><a href="domdocument.load.html">DOMDocument::load</a> — Load XML from a file</li><li><a href="domdocument.loadhtml.html">DOMDocument::loadHTML</a> — Load HTML from a string</li><li><a href="domdocument.loadhtmlfile.html">DOMDocument::loadHTMLFile</a> — Load HTML from a file</li><li><a href="domdocument.loadxml.html">DOMDocument::loadXML</a> — Load XML from a string</li><li><a href="domdocument.normalizedocument.html">DOMDocument::normalizeDocument</a> — Normalizes the document</li><li><a href="domdocument.registernodeclass.html">DOMDocument::registerNodeClass</a> — Register extended class used to create base node type</li><li><a href="domdocument.relaxngvalidate.html">DOMDocument::relaxNGValidate</a> — Performs relaxNG validation on the document</li><li><a href="domdocument.relaxngvalidatesource.html">DOMDocument::relaxNGValidateSource</a> — Performs relaxNG validation on the document</li><li><a href="domdocument.save.html">DOMDocument::save</a> — Dumps the internal XML tree back into a file</li><li><a href="domdocument.savehtml.html">DOMDocument::saveHTML</a> — Dumps the internal document into a string using HTML formatting</li><li><a href="domdocument.savehtmlfile.html">DOMDocument::saveHTMLFile</a> — Dumps the internal document into a file using HTML formatting</li><li><a href="domdocument.savexml.html">DOMDocument::saveXML</a> — Dumps the internal XML tree back into a string</li><li><a href="domdocument.schemavalidate.html">DOMDocument::schemaValidate</a> — Validates a document based on a schema</li><li><a href="domdocument.schemavalidatesource.html">DOMDocument::schemaValidateSource</a> — Validates a document based on a schema</li><li><a href="domdocument.validate.html">DOMDocument::validate</a> — Validates the document based on its DTD</li><li><a href="domdocument.xinclude.html">DOMDocument::xinclude</a> — Substitutes XIncludes in a DOMDocument Object</li></ul></li><li><a href="class.domdocumentfragment.html">DOMDocumentFragment</a> — The DOMDocumentFragment class<ul class="chunklist chunklist_book chunklist_children"><li><a href="domdocumentfragment.appendxml.html">DOMDocumentFragment::appendXML</a> — Append raw XML data</li></ul></li><li><a href="class.domdocumenttype.html">DOMDocumentType</a> — The DOMDocumentType class</li><li><a href="class.domelement.html">DOMElement</a> — The DOMElement class<ul class="chunklist chunklist_book chunklist_children"><li><a href="domelement.construct.html">DOMElement::__construct</a> — Creates a new DOMElement object</li><li><a href="domelement.getattribute.html">DOMElement::getAttribute</a> — Returns value of attribute</li><li><a href="domelement.getattributenode.html">DOMElement::getAttributeNode</a> — Returns attribute node</li><li><a href="domelement.getattributenodens.html">DOMElement::getAttributeNodeNS</a> — Returns attribute node</li><li><a href="domelement.getattributens.html">DOMElement::getAttributeNS</a> — Returns value of attribute</li><li><a href="domelement.getelementsbytagname.html">DOMElement::getElementsByTagName</a> — Gets elements by tagname</li><li><a href="domelement.getelementsbytagnamens.html">DOMElement::getElementsByTagNameNS</a> — Get elements by namespaceURI and localName</li><li><a href="domelement.hasattribute.html">DOMElement::hasAttribute</a> — Checks to see if attribute exists</li><li><a href="domelement.hasattributens.html">DOMElement::hasAttributeNS</a> — Checks to see if attribute exists</li><li><a href="domelement.removeattribute.html">DOMElement::removeAttribute</a> — Removes attribute</li><li><a href="domelement.removeattributenode.html">DOMElement::removeAttributeNode</a> — Removes attribute</li><li><a href="domelement.removeattributens.html">DOMElement::removeAttributeNS</a> — Removes attribute</li><li><a href="domelement.setattribute.html">DOMElement::setAttribute</a> — Adds new attribute</li><li><a href="domelement.setattributenode.html">DOMElement::setAttributeNode</a> — Adds new attribute node to element</li><li><a href="domelement.setattributenodens.html">DOMElement::setAttributeNodeNS</a> — Adds new attribute node to element</li><li><a href="domelement.setattributens.html">DOMElement::setAttributeNS</a> — Adds new attribute</li><li><a href="domelement.setidattribute.html">DOMElement::setIdAttribute</a> — Declares the attribute specified by name to be of type ID</li><li><a href="domelement.setidattributenode.html">DOMElement::setIdAttributeNode</a> — Declares the attribute specified by node to be of type ID</li><li><a href="domelement.setidattributens.html">DOMElement::setIdAttributeNS</a> — Declares the attribute specified by local name and namespace URI to be of type ID</li></ul></li><li><a href="class.domentity.html">DOMEntity</a> — The DOMEntity class</li><li><a href="class.domentityreference.html">DOMEntityReference</a> — The DOMEntityReference class<ul class="chunklist chunklist_book chunklist_children"><li><a href="domentityreference.construct.html">DOMEntityReference::__construct</a> — Creates a new DOMEntityReference object</li></ul></li><li><a href="class.domexception.html">DOMException</a> — The DOMException class</li><li><a href="class.domimplementation.html">DOMImplementation</a> — The DOMImplementation class<ul class="chunklist chunklist_book chunklist_children"><li><a href="domimplementation.construct.html">DOMImplementation::__construct</a> — Creates a new DOMImplementation object</li><li><a href="domimplementation.createdocument.html">DOMImplementation::createDocument</a> — Creates a DOMDocument object of the specified type with its document element</li><li><a href="domimplementation.createdocumenttype.html">DOMImplementation::createDocumentType</a> — Creates an empty DOMDocumentType object</li><li><a href="domimplementation.hasfeature.html">DOMImplementation::hasFeature</a> — Test if the DOM implementation implements a specific feature</li></ul></li><li><a href="class.domnamednodemap.html">DOMNamedNodeMap</a> — The DOMNamedNodeMap class<ul class="chunklist chunklist_book chunklist_children"><li><a href="domnamednodemap.getnameditem.html">DOMNamedNodeMap::getNamedItem</a> — Retrieves a node specified by name</li><li><a href="domnamednodemap.getnameditemns.html">DOMNamedNodeMap::getNamedItemNS</a> — Retrieves a node specified by local name and namespace URI</li><li><a href="domnamednodemap.item.html">DOMNamedNodeMap::item</a> — Retrieves a node specified by index</li></ul></li><li><a href="class.domnode.html">DOMNode</a> — The DOMNode class<ul class="chunklist chunklist_book chunklist_children"><li><a href="domnode.appendchild.html">DOMNode::appendChild</a> — Adds new child at the end of the children</li><li><a href="domnode.c14n.html">DOMNode::C14N</a> — Canonicalize nodes to a string</li><li><a href="domnode.c14nfile.html">DOMNode::C14NFile</a> — Canonicalize nodes to a file</li><li><a href="domnode.clonenode.html">DOMNode::cloneNode</a> — Clones a node</li><li><a href="domnode.getlineno.html">DOMNode::getLineNo</a> — Get line number for a node</li><li><a href="domnode.getnodepath.html">DOMNode::getNodePath</a> — Get an XPath for a node</li><li><a href="domnode.hasattributes.html">DOMNode::hasAttributes</a> — Checks if node has attributes</li><li><a href="domnode.haschildnodes.html">DOMNode::hasChildNodes</a> — Checks if node has children</li><li><a href="domnode.insertbefore.html">DOMNode::insertBefore</a> — Adds a new child before a reference node</li><li><a href="domnode.isdefaultnamespace.html">DOMNode::isDefaultNamespace</a> — Checks if the specified namespaceURI is the default namespace or not</li><li><a href="domnode.issamenode.html">DOMNode::isSameNode</a> — Indicates if two nodes are the same node</li><li><a href="domnode.issupported.html">DOMNode::isSupported</a> — Checks if feature is supported for specified version</li><li><a href="domnode.lookupnamespaceuri.html">DOMNode::lookupNamespaceURI</a> — Gets the namespace URI of the node based on the prefix</li><li><a href="domnode.lookupprefix.html">DOMNode::lookupPrefix</a> — Gets the namespace prefix of the node based on the namespace URI</li><li><a href="domnode.normalize.html">DOMNode::normalize</a> — Normalizes the node</li><li><a href="domnode.removechild.html">DOMNode::removeChild</a> — Removes child from list of children</li><li><a href="domnode.replacechild.html">DOMNode::replaceChild</a> — Replaces a child</li></ul></li><li><a href="class.domnodelist.html">DOMNodeList</a> — The DOMNodeList class<ul class="chunklist chunklist_book chunklist_children"><li><a href="domnodelist.item.html">DOMNodelist::item</a> — Retrieves a node specified by index</li></ul></li><li><a href="class.domnotation.html">DOMNotation</a> — The DOMNotation class</li><li><a href="class.domprocessinginstruction.html">DOMProcessingInstruction</a> — The DOMProcessingInstruction class<ul class="chunklist chunklist_book chunklist_children"><li><a href="domprocessinginstruction.construct.html">DOMProcessingInstruction::__construct</a> — Creates a new DOMProcessingInstruction object</li></ul></li><li><a href="class.domtext.html">DOMText</a> — The DOMText class<ul class="chunklist chunklist_book chunklist_children"><li><a href="domtext.construct.html">DOMText::__construct</a> — Creates a new DOMText object</li><li><a href="domtext.iswhitespaceinelementcontent.html">DOMText::isWhitespaceInElementContent</a> — Indicates whether this text node contains whitespace</li><li><a href="domtext.splittext.html">DOMText::splitText</a> — Breaks this node into two nodes at the specified offset</li></ul></li><li><a href="class.domxpath.html">DOMXPath</a> — The DOMXPath class<ul class="chunklist chunklist_book chunklist_children"><li><a href="domxpath.construct.html">DOMXPath::__construct</a> — Creates a new DOMXPath object</li><li><a href="domxpath.evaluate.html">DOMXPath::evaluate</a> — Evaluates the given XPath expression and returns a typed result if possible</li><li><a href="domxpath.query.html">DOMXPath::query</a> — Evaluates the given XPath expression</li><li><a href="domxpath.registernamespace.html">DOMXPath::registerNamespace</a> — Registers the namespace with the DOMXPath object</li><li><a href="domxpath.registerphpfunctions.html">DOMXPath::registerPhpFunctions</a> — Register PHP functions as XPath functions</li></ul></li><li><a href="ref.dom.html">DOM Functions</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.dom-import-simplexml.html">dom_import_simplexml</a> — Gets a DOMElement object from a
   SimpleXMLElement object</li></ul></li></ul></div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="refs.xml.html">XML Manipulation</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="intro.dom.html">Introduction</a></div>
 <div class="up"><a href="refs.xml.html">XML Manipulation</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>