+
+
+
+
diff --git a/reference/dom/functions/dom-domattr-isid.xml b/reference/dom/functions/dom-domattr-isid.xml
new file mode 100644
index 0000000000..590d423b4f
--- /dev/null
+++ b/reference/dom/functions/dom-domattr-isid.xml
@@ -0,0 +1,41 @@
+
+
+
+
+ DOMAttr->isId
+
+ Checks if attribute is a defined ID
+
+
+
+ Description
+
+ boolDOMAttr->isId
+
+
+
+ This function checks if the attribute is a defined ID.
+
+
+
+
+
diff --git a/reference/dom/functions/dom-domcharacterdata-appenddata.xml b/reference/dom/functions/dom-domcharacterdata-appenddata.xml
new file mode 100644
index 0000000000..4066a316ec
--- /dev/null
+++ b/reference/dom/functions/dom-domcharacterdata-appenddata.xml
@@ -0,0 +1,41 @@
+
+
+
+
+ DOMCharacterData->appendData
+
+ Append the string to the end of the character data of the node.
+
+
+
+ Description
+
+ voidDOMCharacterData->appendData
+ stringdata
+
+
+ Append the string data to the end of the character data of the node.
+
+
+
+
+
diff --git a/reference/dom/functions/dom-domcharacterdata-deletedata.xml b/reference/dom/functions/dom-domcharacterdata-deletedata.xml
new file mode 100644
index 0000000000..b9d7b98a0c
--- /dev/null
+++ b/reference/dom/functions/dom-domcharacterdata-deletedata.xml
@@ -0,0 +1,50 @@
+
+
+
+
+ DOMCharacterData->deleteData
+
+ Remove a range of characters from the node.
+
+
+
+ Description
+
+ voidDOMCharacterData->deleteData
+ intoffset
+ intcount
+
+
+ Deletes count characters starting from position
+ offset. If the sum of offset
+ and count exceeds the length, then all characters
+ to the end of the data are deleted.
+
+
+ Throws DOMExcpetion if offset
+ is negative or greater than the number of characters in data, or if
+ count is negative.
+
+
+
+
+
diff --git a/reference/dom/functions/dom-domcharacterdata-insertdata.xml b/reference/dom/functions/dom-domcharacterdata-insertdata.xml
new file mode 100644
index 0000000000..90be384a86
--- /dev/null
+++ b/reference/dom/functions/dom-domcharacterdata-insertdata.xml
@@ -0,0 +1,46 @@
+
+
+
+
+ DOMCharacterData->insertData
+
+ Insert a string at the specified 16-bit unit offset.
+
+
+
+ Description
+
+ voidDOMCharacterData->insertData
+ intoffset
+ stringdata
+
+
+ Inserts string data at position offset.
+
+
+ Throws DOMExcpetion if offset
+ is negative or greater than the number of 16-bit units in data.
+
+
+
+
+
diff --git a/reference/dom/functions/dom-domcharacterdata-replacedata.xml b/reference/dom/functions/dom-domcharacterdata-replacedata.xml
new file mode 100644
index 0000000000..1696e5d574
--- /dev/null
+++ b/reference/dom/functions/dom-domcharacterdata-replacedata.xml
@@ -0,0 +1,52 @@
+
+
+
+
+ DOMCharacterData->replaceData
+
+ Replace a substring within the DOMCharacterData node.
+
+
+
+ Description
+
+ voidDOMCharacterData->replaceData
+ intoffset
+ intcount
+ stringdata
+
+
+ Replace count characters starting from position
+ offset with data. If the
+ sum of offset and count
+ exceeds the length, then all characters to the end of the data are
+ replaced.
+
+
+ Throws DOMExcpetion if offset
+ is negative or greater than the number of characters in data, or if
+ count is negative.
+
+
+
+
+
diff --git a/reference/dom/functions/dom-domcharacterdata-substringdata.xml b/reference/dom/functions/dom-domcharacterdata-substringdata.xml
new file mode 100644
index 0000000000..50d2afa230
--- /dev/null
+++ b/reference/dom/functions/dom-domcharacterdata-substringdata.xml
@@ -0,0 +1,49 @@
+
+
+
+
+ DOMCharacterData->substringData
+
+ Extracts a range of data from the node.
+
+
+
+ Description
+
+ stringDOMCharacterData->substringData
+ intoffset
+ intcount
+
+
+ Returns the specified substring. If the sum of offset
+ and count exceeds the length, then all 16-bit units
+ to the end of the data are returned.
+
+
+ Throws DOMExcpetion if offset
+ is negative or greater than the number of 16-bit units in data, or if
+ count is negative.
+
+
+
+
+
diff --git a/reference/dom/functions/dom-domdocument-createattribute.xml b/reference/dom/functions/dom-domdocument-createattribute.xml
new file mode 100644
index 0000000000..3447bc14b1
--- /dev/null
+++ b/reference/dom/functions/dom-domdocument-createattribute.xml
@@ -0,0 +1,52 @@
+
+
+
+
+ DOMDocument->createAttribute
+ Create new attribute
+
+
+ Description
+
+ objectDOMDocument->createAttribute
+ stringname
+
+
+ This function returns a new instance of class DOMAttr.
+ The name of the attribute is the value of the first parameter. This node
+ will not show up in the document unless it is inserted with e.g.
+ DOMNode->appendChild().
+
+
+ The return value is &false; if an error occurred.
+
+
+ See also DOMDocument->createElement(),
+ DOMNode->appendChild(),
+ DOMDocument->createTextNode(),
+ DOMDocument->createComment() and
+ DOMDocument->createProcessingInstruction().
+
+
+
+
+
diff --git a/reference/dom/functions/dom-domdocument-createattributens.xml b/reference/dom/functions/dom-domdocument-createattributens.xml
new file mode 100644
index 0000000000..71f0f8b6cb
--- /dev/null
+++ b/reference/dom/functions/dom-domdocument-createattributens.xml
@@ -0,0 +1,57 @@
+
+
+
+
+ DOMDocument->createAttributeNS
+
+ Create new attribute node with an associated namespace
+
+
+
+ Description
+
+ objectDOMDocument->createAttributeNS
+ stringnamespaceURI
+ stringqualifiedName
+
+
+ This function returns a new instance of class DOMAttr.
+ The tag name and prefix of the attribute is determined by the value of the
+ passed parameter qualifiedName. The URI of the
+ namespace is the value of namespaceURI. This node
+ will not show up in the document unless it is inserted with e.g.
+ DOMNode->appendChild().
+
+
+ The return value is &false; if an error occurred.
+
+
+ See also DOMDocument->createElementNS(),
+ DOMNode->appendChild(),
+ DOMDocument->createElement(),
+ DOMDocument->createTextNode() and
+ DOMDocument->createAttribute().
+
+
+
+
+
diff --git a/reference/dom/functions/dom-domdocument-createcdatasection.xml b/reference/dom/functions/dom-domdocument-createcdatasection.xml
new file mode 100644
index 0000000000..02ef1e02b1
--- /dev/null
+++ b/reference/dom/functions/dom-domdocument-createcdatasection.xml
@@ -0,0 +1,53 @@
+
+
+
+
+ DOMDocument->createCDATASection
+ Create new cdata node
+
+
+ Description
+
+ objectDOMDocument->createCDATASection
+ stringdata
+
+
+ This function returns a new instance of class
+ DOMCDATASection. The content of the cdata is the
+ value of the passed parameter. This node will not show up in the
+ document unless it is inserted with e.g.
+ DOMNode->appendChild().
+
+
+ The return value is &false; if an error occurred.
+
+
+ See also DOMNode->appendChild(),
+ DOMDocument->createElement(),
+ DOMDocument->createTextNode(),
+ DOMDocument->createAttribute(),
+ DOMDocument->createProcessingInstruction().
+
+
+
+
+
diff --git a/reference/dom/functions/dom-domdocument-createcomment.xml b/reference/dom/functions/dom-domdocument-createcomment.xml
new file mode 100644
index 0000000000..fdb4bbc57b
--- /dev/null
+++ b/reference/dom/functions/dom-domdocument-createcomment.xml
@@ -0,0 +1,53 @@
+
+
+
+
+ DOMDocument->createComment
+ Create new comment node
+
+
+ Description
+
+ objectDOMDocument->createComment
+ stringdata
+
+
+ This function returns a new instance of class
+ DOMComment. The content of the comment is the
+ value of the passed parameter. This node will not show up in the
+ document unless it is inserted with e.g.
+ DOMNode->appendChild().
+
+
+ The return value is &false; if an error occurred.
+
+
+ See also DOMNode->appendChild(),
+ DOMDocument->createElement(),
+ DOMDocument->createTextNode(),
+ DOMDocument->createAttribute(),
+ DOMDocument->createProcessingInstruction().
+
+
+
+
+
diff --git a/reference/dom/functions/dom-domdocument-createdocumentfragment.xml b/reference/dom/functions/dom-domdocument-createdocumentfragment.xml
new file mode 100644
index 0000000000..5d63feaa7f
--- /dev/null
+++ b/reference/dom/functions/dom-domdocument-createdocumentfragment.xml
@@ -0,0 +1,45 @@
+
+
+
+
+ DOMDocument->createDocumentFragment
+ Create new document fragment
+
+
+ Description
+
+ objectDOMDocument->createDocumentFragment
+
+
+
+ This function returns a new instance of class DOMAttr.
+ The name of the attribute is the value of the first parameter. This node
+ will not show up in the document unless it is inserted with e.g.
+ DOMNode->appendChild.
+
+
+ The return value is &false; if an error occurred.
+
+
+
+
+
diff --git a/reference/dom/functions/dom-domdocument-createelement.xml b/reference/dom/functions/dom-domdocument-createelement.xml
new file mode 100644
index 0000000000..6807000702
--- /dev/null
+++ b/reference/dom/functions/dom-domdocument-createelement.xml
@@ -0,0 +1,56 @@
+
+
+
+
+ DOMDocument->createElement
+ Create new element node
+
+
+ Description
+
+ objectDOMDocument->createElement
+ stringname
+ stringvalue
+
+
+ This function returns a new instance of class
+ DOMElement. The tag name of the element is the
+ value of the name parameter. Optionally, a value for the new element may
+ also be passed in. This node will not show up in the document unless it
+ is inserted with e.g.
+ DOMNode->appendChild().
+
+
+ The return value is &false; if an error occurred.
+
+
+ See also DOMDocument->createElementNS(),
+ DOMNode->appendChild(),
+ DOMDocument->createTextNode(),
+ DOMDocument->createComment(),
+ DOMDocument->createAttribute(),
+ DOMDocument->createProcessingInstruction().
+
+
+
+
+
diff --git a/reference/dom/functions/dom-domdocument-createelementns.xml b/reference/dom/functions/dom-domdocument-createelementns.xml
new file mode 100644
index 0000000000..59003a4ee2
--- /dev/null
+++ b/reference/dom/functions/dom-domdocument-createelementns.xml
@@ -0,0 +1,58 @@
+
+
+
+
+ DOMDocument->createElementNS
+
+ Create new element node with an associated namespace
+
+
+
+ Description
+
+ objectDomDocument->createElementNS
+ stringnamespaceURI
+ stringqualifiedName
+
+
+ This function returns a new instance of class
+ DOMElement. The tag name and prefix of the element
+ is determined by the value of the passed parameter qualifiedName.
+ The URI of the namespace is the value of the passed parameter
+ namespaceURI. This node will not show up in the
+ document unless it is inserted with e.g.
+ DOMNode->appendChild().
+
+
+ The return value is &false; if an error occurred.
+
+
+ See also DOMNode->appendChild(),
+ DOMDocument->createAttributeNS(),
+ DOMDocument->createElement(),
+ DOMDocument->createAttribute() and
+ DOMDocument->createComment().
+
+
+
+
+
diff --git a/reference/dom/functions/dom-domdocument-createentityreference.xml b/reference/dom/functions/dom-domdocument-createentityreference.xml
new file mode 100644
index 0000000000..d1479e3ea3
--- /dev/null
+++ b/reference/dom/functions/dom-domdocument-createentityreference.xml
@@ -0,0 +1,53 @@
+
+
+
+
+ DOMDocument->createEntityReference
+ Create new entity reference node
+
+
+ Description
+
+ objectDOMDocument->createEntityReference
+ stringname
+
+
+ This function returns a new instance of class
+ DOMEntityReference. The content of the entity
+ reference is the
+ value of the passed parameter. This node will not show up in the
+ document unless it is inserted with e.g.
+ DOMNode->appendChild().
+
+
+ The return value is &false; if an error occurred.
+
+
+ See also DOMNode->appendChild(),
+ DOMDocument->createElement(),
+ DOMDocument->createAttribute() and
+ DOMDocument->createComment().
+
+
+
+
+
diff --git a/reference/dom/functions/dom-domdocument-createprocessinginstruction.xml b/reference/dom/functions/dom-domdocument-createprocessinginstruction.xml
new file mode 100644
index 0000000000..630297314a
--- /dev/null
+++ b/reference/dom/functions/dom-domdocument-createprocessinginstruction.xml
@@ -0,0 +1,53 @@
+
+
+
+
+ DOMDocument->createProcessingInstruction
+ Creates new PI node
+
+
+ Description
+
+ objectDOMDocument->createProcessingInstruction
+ stringtarget
+ stringdata
+
+
+ This function returns a new instance of class
+ DOMProcessingInstruction. The content of the pi is the
+ value of the passed parameter. This node will not show up in the
+ document unless it is inserted with e.g.
+ DOMNode->appendChild().
+
+
+ The return value is &false; if an error occurred.
+
+
+ See also DOMNode->appendChild(),
+ DOMDocument->createElement(),
+ DOMDocument->createAttribute() and
+ DOMDocument->createComment().
+
+
+
+
+
diff --git a/reference/dom/functions/dom-domdocument-createtextnode.xml b/reference/dom/functions/dom-domdocument-createtextnode.xml
new file mode 100644
index 0000000000..07a69394ca
--- /dev/null
+++ b/reference/dom/functions/dom-domdocument-createtextnode.xml
@@ -0,0 +1,53 @@
+
+
+
+
+ DOMDocument->createTextNode
+ Create new text node
+
+
+ Description
+
+ objectDOMDocument->createTextNode
+ stringcontent
+
+
+ This function returns a new instance of class
+ DOMText. The content of the text is the value of
+ the passed
+ parameter. This node will not show up in the
+ document unless it is inserted with e.g.
+ DOMNode->appendChild().
+
+
+ The return value is &false; if an error occurred.
+
+
+ See also DOMNode->appendChild(),
+ DOMDocument->createElement(),
+ DOMDocument->createAttribute() and
+ DOMDocument->createComment().
+
+
+
+
+
diff --git a/reference/dom/functions/dom-domdocument-getelementbyid.xml b/reference/dom/functions/dom-domdocument-getelementbyid.xml
new file mode 100644
index 0000000000..95705556c7
--- /dev/null
+++ b/reference/dom/functions/dom-domdocument-getelementbyid.xml
@@ -0,0 +1,42 @@
+
+
+
+
+ DOMDocument->getElementById
+ Searches for an element with a certain id.
+
+
+ Description
+
+ objectDOMDocument->getElementById
+ stringelementId
+
+
+ This function is similar to
+ DOMDocument->getElementsByTagName()
+ but searches for an element with a given id. According to the DOM standard
+ this requires a DTD which defines the attribute ID to be of type ID.
+
+
+
+
+
diff --git a/reference/dom/functions/dom-domdocument-getelementsbytagname.xml b/reference/dom/functions/dom-domdocument-getelementsbytagname.xml
new file mode 100644
index 0000000000..c051d4a42f
--- /dev/null
+++ b/reference/dom/functions/dom-domdocument-getelementsbytagname.xml
@@ -0,0 +1,42 @@
+
+
+
+
+ DOMDocument->getElementsByTagName
+ Searches for all elements with given tag name.
+
+
+ Description
+
+ objectDOMDocument->getElementsByTagName
+ stringname
+
+
+ This function returns a new instance of class
+ DOMNodeList containing the elements with tagnames
+ matching the name parameter. Use "*" for the name to return all elements
+ within the document.
+
+
+
+
+
diff --git a/reference/dom/functions/dom-domdocument-getelementsbytagnamens.xml b/reference/dom/functions/dom-domdocument-getelementsbytagnamens.xml
new file mode 100644
index 0000000000..8a5be3719d
--- /dev/null
+++ b/reference/dom/functions/dom-domdocument-getelementsbytagnamens.xml
@@ -0,0 +1,45 @@
+
+
+
+
+ DOMDocument->getElementsByTagNameNS
+
+ Searches for all elements with given tag name in specified namespace.
+
+
+
+ Description
+
+ objectDOMDocument->getElementsByTagNameNS
+ stringnamespaceURI
+ stringlocalName
+
+
+ This function returns a new instance of class
+ DOMNodeList containing the elements with tagnames
+ matching the localName parameter and in the namespaceURI namespace.
+ Use "*" for the name to return all elements within the document.
+
+
+
+
+
diff --git a/reference/dom/functions/dom-domdocument-importnode.xml b/reference/dom/functions/dom-domdocument-importnode.xml
new file mode 100644
index 0000000000..1229589683
--- /dev/null
+++ b/reference/dom/functions/dom-domdocument-importnode.xml
@@ -0,0 +1,42 @@
+
+
+
+
+ DOMDocument->importNode
+ Import node into current document.
+
+
+ Description
+
+ objectDOMDocument->importNode
+ objectimportedNode
+ booldeep
+
+
+ This function returns a copy of the node to import and associates it with
+ the current document. DOMExcpetion is thrown if
+ node cannot be imported.
+
+
+
+
+
diff --git a/reference/dom/functions/dom-domdocument-load.xml b/reference/dom/functions/dom-domdocument-load.xml
new file mode 100644
index 0000000000..e007fe879a
--- /dev/null
+++ b/reference/dom/functions/dom-domdocument-load.xml
@@ -0,0 +1,68 @@
+
+
+
+
+ DOMDocument->load
+
+ Load XML from a file.
+
+
+
+ Description
+
+ mixedDOMDocument->load
+ stringfilename
+
+
+ The function parses the XML document in the file named
+ filename. This function may also be called
+ statically to load and create a DOMDocument object.
+ The static invocation may be used when no
+ DOMDocument properties need to be set prior to
+ loading.
+
+
+
+ Creating a Document
+
+saveXML();
+
+$doc = new DOMDocument();
+$doc->load("filename");
+print $doc->saveXML();
+?>
+]]>
+
+
+
+
+ See also DOMDocument->loadXML(),
+ DOMDocument->save() and
+ DOMDocument->saveXML().
+
+
+
+
+
diff --git a/reference/dom/functions/dom-domdocument-loadhtml.xml b/reference/dom/functions/dom-domdocument-loadhtml.xml
new file mode 100644
index 0000000000..531d323eee
--- /dev/null
+++ b/reference/dom/functions/dom-domdocument-loadhtml.xml
@@ -0,0 +1,68 @@
+
+
+
+
+ DOMDocument->loadHTML
+
+ Load HTML from a string.
+
+
+
+ Description
+
+ mixedDOMDocument->loadHTML
+ stringsource
+
+
+ The function parses the HTML contained in the string source.
+ Unlike loading XML, HTML does not have to be well-formed to load. This
+ function may also be called statically to load and create a
+ DOMDocument object. The static invocation may be
+ used when no DOMDocument properties need to be
+ set prior to loading.
+
+
+
+ Creating a Document
+
+Test