From cc3f882e6eaa6f3b3aa6175e4ff620b4ef679a5c Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Wed, 9 Apr 2014 21:54:26 +0000 Subject: [PATCH] This was actually undocumented long time ago as it caused ID collisions with ext/dom Remove it all so we don't confuse translators git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@333295 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/domxml/DomAttribute/name.xml | 62 -- reference/domxml/DomAttribute/set-value.xml | 77 -- reference/domxml/DomAttribute/specified.xml | 65 -- reference/domxml/DomAttribute/value.xml | 100 --- reference/domxml/DomDocument/add-root.xml | 59 -- .../domxml/DomDocument/create-attribute.xml | 56 -- .../DomDocument/create-cdata-section.xml | 54 -- .../domxml/DomDocument/create-comment.xml | 54 -- .../domxml/DomDocument/create-element-ns.xml | 66 -- .../domxml/DomDocument/create-element.xml | 55 -- .../DomDocument/create-entity-reference.xml | 56 -- .../create-processing-instruction.xml | 55 -- .../domxml/DomDocument/create-text-node.xml | 56 -- reference/domxml/DomDocument/doctype.xml | 48 -- .../domxml/DomDocument/document-element.xml | 76 -- reference/domxml/DomDocument/dump-file.xml | 74 -- reference/domxml/DomDocument/dump-mem.xml | 79 -- .../domxml/DomDocument/get-element-by-id.xml | 52 -- .../DomDocument/get-elements-by-tagname.xml | 44 -- .../domxml/DomDocument/html-dump-mem.xml | 82 -- reference/domxml/DomDocument/xinclude.xml | 91 --- reference/domxml/DomDocumentType/entities.xml | 48 -- .../DomDocumentType/internal-subset.xml | 48 -- reference/domxml/DomDocumentType/name.xml | 80 -- .../domxml/DomDocumentType/notations.xml | 48 -- .../domxml/DomDocumentType/public-id.xml | 79 -- .../domxml/DomDocumentType/system-id.xml | 84 -- .../domxml/DomElement/get-attribute-node.xml | 106 --- reference/domxml/DomElement/get-attribute.xml | 108 --- .../DomElement/get-elements-by-tagname.xml | 96 --- reference/domxml/DomElement/has-attribute.xml | 100 --- .../domxml/DomElement/remove-attribute.xml | 69 -- .../domxml/DomElement/set-attribute-node.xml | 40 - reference/domxml/DomElement/set-attribute.xml | 107 --- reference/domxml/DomElement/tagname.xml | 85 -- reference/domxml/DomNode/add-namespace.xml | 100 --- reference/domxml/DomNode/append-child.xml | 223 ------ reference/domxml/DomNode/append-sibling.xml | 61 -- reference/domxml/DomNode/attributes.xml | 45 -- reference/domxml/DomNode/child-nodes.xml | 45 -- reference/domxml/DomNode/clone-node.xml | 41 - reference/domxml/DomNode/dump-node.xml | 44 -- reference/domxml/DomNode/first-child.xml | 49 -- reference/domxml/DomNode/get-content.xml | 66 -- reference/domxml/DomNode/has-attributes.xml | 44 -- reference/domxml/DomNode/has-child-nodes.xml | 44 -- reference/domxml/DomNode/insert-before.xml | 90 --- reference/domxml/DomNode/is-blank-node.xml | 41 - reference/domxml/DomNode/last-child.xml | 49 -- reference/domxml/DomNode/next-sibling.xml | 73 -- reference/domxml/DomNode/node-name.xml | 103 --- reference/domxml/DomNode/node-type.xml | 72 -- reference/domxml/DomNode/node-value.xml | 103 --- reference/domxml/DomNode/owner-document.xml | 65 -- reference/domxml/DomNode/parent-node.xml | 65 -- reference/domxml/DomNode/prefix.xml | 41 - reference/domxml/DomNode/previous-sibling.xml | 47 -- reference/domxml/DomNode/remove-child.xml | 73 -- reference/domxml/DomNode/replace-child.xml | 57 -- reference/domxml/DomNode/replace-node.xml | 58 -- reference/domxml/DomNode/set-content.xml | 41 - reference/domxml/DomNode/set-name.xml | 44 -- reference/domxml/DomNode/set-namespace.xml | 49 -- reference/domxml/DomNode/unlink-node.xml | 41 - .../domxml/DomProcessingInstruction/data.xml | 54 -- .../DomProcessingInstruction/target.xml | 54 -- .../domxml/DomXsltStylesheet/process.xml | 141 ---- .../DomXsltStylesheet/result-dump-file.xml | 77 -- .../DomXsltStylesheet/result-dump-mem.xml | 76 -- reference/domxml/book.xml | 73 -- reference/domxml/configure.xml | 53 -- reference/domxml/constants.xml | 350 --------- reference/domxml/functions/domxml-new-doc.xml | 62 -- .../domxml/functions/domxml-open-file.xml | 145 ---- .../domxml/functions/domxml-open-mem.xml | 149 ---- reference/domxml/functions/domxml-version.xml | 70 -- reference/domxml/functions/domxml-xmltree.xml | 74 -- .../functions/domxml-xslt-stylesheet-doc.xml | 80 -- .../functions/domxml-xslt-stylesheet-file.xml | 80 -- .../functions/domxml-xslt-stylesheet.xml | 80 -- .../domxml/functions/domxml-xslt-version.xml | 78 -- .../functions/xpath-eval-expression.xml | 96 --- reference/domxml/functions/xpath-eval.xml | 52 -- .../domxml/functions/xpath-new-context.xml | 49 -- .../functions/xpath-register-ns-auto.xml | 54 -- .../domxml/functions/xpath-register-ns.xml | 55 -- reference/domxml/functions/xptr-eval.xml | 48 -- .../domxml/functions/xptr-new-context.xml | 41 - reference/domxml/reference.xml | 733 ------------------ reference/domxml/setup.xml | 63 -- reference/domxml/versions.xml | 227 ------ 91 files changed, 7447 deletions(-) delete mode 100644 reference/domxml/DomAttribute/name.xml delete mode 100644 reference/domxml/DomAttribute/set-value.xml delete mode 100644 reference/domxml/DomAttribute/specified.xml delete mode 100644 reference/domxml/DomAttribute/value.xml delete mode 100644 reference/domxml/DomDocument/add-root.xml delete mode 100644 reference/domxml/DomDocument/create-attribute.xml delete mode 100644 reference/domxml/DomDocument/create-cdata-section.xml delete mode 100644 reference/domxml/DomDocument/create-comment.xml delete mode 100644 reference/domxml/DomDocument/create-element-ns.xml delete mode 100644 reference/domxml/DomDocument/create-element.xml delete mode 100644 reference/domxml/DomDocument/create-entity-reference.xml delete mode 100644 reference/domxml/DomDocument/create-processing-instruction.xml delete mode 100644 reference/domxml/DomDocument/create-text-node.xml delete mode 100644 reference/domxml/DomDocument/doctype.xml delete mode 100644 reference/domxml/DomDocument/document-element.xml delete mode 100644 reference/domxml/DomDocument/dump-file.xml delete mode 100644 reference/domxml/DomDocument/dump-mem.xml delete mode 100644 reference/domxml/DomDocument/get-element-by-id.xml delete mode 100644 reference/domxml/DomDocument/get-elements-by-tagname.xml delete mode 100644 reference/domxml/DomDocument/html-dump-mem.xml delete mode 100644 reference/domxml/DomDocument/xinclude.xml delete mode 100644 reference/domxml/DomDocumentType/entities.xml delete mode 100644 reference/domxml/DomDocumentType/internal-subset.xml delete mode 100644 reference/domxml/DomDocumentType/name.xml delete mode 100644 reference/domxml/DomDocumentType/notations.xml delete mode 100644 reference/domxml/DomDocumentType/public-id.xml delete mode 100644 reference/domxml/DomDocumentType/system-id.xml delete mode 100644 reference/domxml/DomElement/get-attribute-node.xml delete mode 100644 reference/domxml/DomElement/get-attribute.xml delete mode 100644 reference/domxml/DomElement/get-elements-by-tagname.xml delete mode 100644 reference/domxml/DomElement/has-attribute.xml delete mode 100644 reference/domxml/DomElement/remove-attribute.xml delete mode 100644 reference/domxml/DomElement/set-attribute-node.xml delete mode 100644 reference/domxml/DomElement/set-attribute.xml delete mode 100644 reference/domxml/DomElement/tagname.xml delete mode 100644 reference/domxml/DomNode/add-namespace.xml delete mode 100644 reference/domxml/DomNode/append-child.xml delete mode 100644 reference/domxml/DomNode/append-sibling.xml delete mode 100644 reference/domxml/DomNode/attributes.xml delete mode 100644 reference/domxml/DomNode/child-nodes.xml delete mode 100644 reference/domxml/DomNode/clone-node.xml delete mode 100644 reference/domxml/DomNode/dump-node.xml delete mode 100644 reference/domxml/DomNode/first-child.xml delete mode 100644 reference/domxml/DomNode/get-content.xml delete mode 100644 reference/domxml/DomNode/has-attributes.xml delete mode 100644 reference/domxml/DomNode/has-child-nodes.xml delete mode 100644 reference/domxml/DomNode/insert-before.xml delete mode 100644 reference/domxml/DomNode/is-blank-node.xml delete mode 100644 reference/domxml/DomNode/last-child.xml delete mode 100644 reference/domxml/DomNode/next-sibling.xml delete mode 100644 reference/domxml/DomNode/node-name.xml delete mode 100644 reference/domxml/DomNode/node-type.xml delete mode 100644 reference/domxml/DomNode/node-value.xml delete mode 100644 reference/domxml/DomNode/owner-document.xml delete mode 100644 reference/domxml/DomNode/parent-node.xml delete mode 100644 reference/domxml/DomNode/prefix.xml delete mode 100644 reference/domxml/DomNode/previous-sibling.xml delete mode 100644 reference/domxml/DomNode/remove-child.xml delete mode 100644 reference/domxml/DomNode/replace-child.xml delete mode 100644 reference/domxml/DomNode/replace-node.xml delete mode 100644 reference/domxml/DomNode/set-content.xml delete mode 100644 reference/domxml/DomNode/set-name.xml delete mode 100644 reference/domxml/DomNode/set-namespace.xml delete mode 100644 reference/domxml/DomNode/unlink-node.xml delete mode 100644 reference/domxml/DomProcessingInstruction/data.xml delete mode 100644 reference/domxml/DomProcessingInstruction/target.xml delete mode 100644 reference/domxml/DomXsltStylesheet/process.xml delete mode 100644 reference/domxml/DomXsltStylesheet/result-dump-file.xml delete mode 100644 reference/domxml/DomXsltStylesheet/result-dump-mem.xml delete mode 100644 reference/domxml/book.xml delete mode 100644 reference/domxml/configure.xml delete mode 100644 reference/domxml/constants.xml delete mode 100644 reference/domxml/functions/domxml-new-doc.xml delete mode 100644 reference/domxml/functions/domxml-open-file.xml delete mode 100644 reference/domxml/functions/domxml-open-mem.xml delete mode 100644 reference/domxml/functions/domxml-version.xml delete mode 100644 reference/domxml/functions/domxml-xmltree.xml delete mode 100644 reference/domxml/functions/domxml-xslt-stylesheet-doc.xml delete mode 100644 reference/domxml/functions/domxml-xslt-stylesheet-file.xml delete mode 100644 reference/domxml/functions/domxml-xslt-stylesheet.xml delete mode 100644 reference/domxml/functions/domxml-xslt-version.xml delete mode 100644 reference/domxml/functions/xpath-eval-expression.xml delete mode 100644 reference/domxml/functions/xpath-eval.xml delete mode 100644 reference/domxml/functions/xpath-new-context.xml delete mode 100644 reference/domxml/functions/xpath-register-ns-auto.xml delete mode 100644 reference/domxml/functions/xpath-register-ns.xml delete mode 100644 reference/domxml/functions/xptr-eval.xml delete mode 100644 reference/domxml/functions/xptr-new-context.xml delete mode 100644 reference/domxml/reference.xml delete mode 100644 reference/domxml/setup.xml delete mode 100644 reference/domxml/versions.xml diff --git a/reference/domxml/DomAttribute/name.xml b/reference/domxml/DomAttribute/name.xml deleted file mode 100644 index 24bd2edaa1..0000000000 --- a/reference/domxml/DomAttribute/name.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - DomAttribute::name - - Returns the name of attribute - - - - &reftitle.description; - - stringDomAttribute::name - - - - Gets the name of the attribute. - - - - &reftitle.returnvalues; - - Returns the name of the attribute. - - - - Migrating to PHP 5 - - Use the name property of - DOMAttr. - - - - &reftitle.seealso; - - - for an example - - - - - - diff --git a/reference/domxml/DomAttribute/set-value.xml b/reference/domxml/DomAttribute/set-value.xml deleted file mode 100644 index 624d0ee07c..0000000000 --- a/reference/domxml/DomAttribute/set-value.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - DomAttribute::set_value - - Sets the value of an attribute - - - - &reftitle.description; - - boolDomAttribute::set_value - stringcontent - - - This function sets the value of an attribute. - - - - &reftitle.parameters; - - - - content - - - The new value. - - - - - - - - &reftitle.returnvalues; - - &return.success; - - - - Migrating to PHP 5 - - Set the value property of - DOMAttr. - - - - &reftitle.seealso; - - - - - - - - - diff --git a/reference/domxml/DomAttribute/specified.xml b/reference/domxml/DomAttribute/specified.xml deleted file mode 100644 index cadfbeab62..0000000000 --- a/reference/domxml/DomAttribute/specified.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - DomAttribute::specified - - Checks if attribute is specified - - - - &reftitle.description; - - boolDomAttribute::specified - - - - Checks if the attribute was explicitly given a value in the original - document. - - - - This method is not implemented yet. - - - - - &reftitle.returnvalues; - - &return.success; - - - - &reftitle.seealso; - - - - The definition of specified in the DOM - Recommendations - - - - - - - diff --git a/reference/domxml/DomAttribute/value.xml b/reference/domxml/DomAttribute/value.xml deleted file mode 100644 index 637efb7e99..0000000000 --- a/reference/domxml/DomAttribute/value.xml +++ /dev/null @@ -1,100 +0,0 @@ - - - - - DomAttribute::value - - Returns value of attribute - - - - &reftitle.description; - - stringDomAttribute::value - - - - This function returns the value of the attribute. - - - - &reftitle.examples; - - - Getting all the attributes of a node - -document_element(); -$attrs = $root->attributes(); - -echo 'Attributes of ' . $root->node_name() . "\n"; -foreach ($attrs as $attribute) { - echo ' - ' . $attribute->name . ' : ' . $attribute->value . "\n"; -} - -?> -]]> - - &example.outputs; - - - - - - - - &reftitle.returnvalues; - - Returns the value of the attribute. - - - - Migrating to PHP 5 - - Use the value property of - DOMAttr. - - - - &reftitle.seealso; - - - - - - - - - - diff --git a/reference/domxml/DomDocument/add-root.xml b/reference/domxml/DomDocument/add-root.xml deleted file mode 100644 index 67457f40b1..0000000000 --- a/reference/domxml/DomDocument/add-root.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - DomDocument::add_root - - Adds a root node [deprecated] - - - - &reftitle.description; - - domelementDomDocument::add_root - stringname - - - Adds a root element node to a dom document and returns the new node. - The element name is given in the passed parameter. - - - - Creating a simple HTML document header - -add_root("html"); -$head = $root->new_child("head", ""); -$head->new_child("title", "Hier der Titel"); -echo htmlentities($doc->dump_mem()); -?> -]]> - - - - - - - diff --git a/reference/domxml/DomDocument/create-attribute.xml b/reference/domxml/DomDocument/create-attribute.xml deleted file mode 100644 index 5e0e9d2ee0..0000000000 --- a/reference/domxml/DomDocument/create-attribute.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - DomDocument::create_attribute - Create new attribute - - - &reftitle.description; - - domattributeDomDocument::create_attribute - stringname - stringvalue - - - This function returns a new instance of class - DomAttribute. The name of the attribute is the - value of the first parameter. The value of the attribute is the value of - the second parameter. &node.inserted; - - - The return value is &false; if an error occurred. - - - See also domnode_append_child, - domdocument_create_element, - domdocument_create_text, - domdocument_create_cdata_section, - domdocument_create_processing_instruction, - domdocument_create_entity_reference, and - domnode_insert_before. - - - - - diff --git a/reference/domxml/DomDocument/create-cdata-section.xml b/reference/domxml/DomDocument/create-cdata-section.xml deleted file mode 100644 index 372fcaa274..0000000000 --- a/reference/domxml/DomDocument/create-cdata-section.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - DomDocument::create_cdata_section - Create new cdata node - - - &reftitle.description; - - domcdataDomDocument::create_cdata_section - stringcontent - - - This function returns a new instance of class - DomCData. The content of the cdata is the - value of the passed parameter. &node.inserted; - - - The return value is &false; if an error occurred. - - - See also domnode_append_child, - domdocument_create_element, - domdocument_create_text, - domdocument_create_attribute, - domdocument_create_processing_instruction, - domdocument_create_entity_reference, and - domnode_insert_before. - - - - - diff --git a/reference/domxml/DomDocument/create-comment.xml b/reference/domxml/DomDocument/create-comment.xml deleted file mode 100644 index ad6fb4d429..0000000000 --- a/reference/domxml/DomDocument/create-comment.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - DomDocument::create_comment - Create new comment node - - - &reftitle.description; - - domcommentDomDocument::create_comment - stringcontent - - - This function returns a new instance of class - DomComment. The content of the comment is the - value of the passed parameter. &node.inserted; - - - The return value is &false; if an error occurred. - - - See also domnode_append_child, - domdocument_create_element, - domdocument_create_text, - domdocument_create_attribute, - domdocument_create_processing_instruction, - domdocument_create_entity_reference, and - domnode_insert_before. - - - - - diff --git a/reference/domxml/DomDocument/create-element-ns.xml b/reference/domxml/DomDocument/create-element-ns.xml deleted file mode 100644 index a4ff7d7c34..0000000000 --- a/reference/domxml/DomDocument/create-element-ns.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - DomDocument::create_element_ns - - Create new element node with an associated namespace - - - - &reftitle.description; - - domelementDomDocument::create_element_ns - stringuri - stringname - stringprefix - - - This function returns a new instance of class - DomElement. The tag name of the element is the - value of the passed parameter name. The URI of the - namespace is the value of the passed parameter uri. - If there is already a namespace declaration with the same uri in the root-node - of the document, the prefix of this is taken, otherwise it will take the one provided - in the optional parameter prefix or generate a random one. - &node.inserted; - - - The return value is &false; if an error occurred. - - - See also domdocument_create_element_ns, - domnode_add_namespace, - domnode_set_namespace, - domnode_append_child, - domdocument_create_text, - domdocument_create_comment, - domdocument_create_attribute, - domdocument_create_processing_instruction, - domdocument_create_entity_reference, and - domnode_insert_before. - - - - - diff --git a/reference/domxml/DomDocument/create-element.xml b/reference/domxml/DomDocument/create-element.xml deleted file mode 100644 index 00645f5500..0000000000 --- a/reference/domxml/DomDocument/create-element.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - DomDocument::create_element - Create new element node - - - &reftitle.description; - - domelementDomDocument::create_element - stringname - - - This function returns a new instance of class - DomElement. The tag name of the element is the - value of the passed parameter. &node.inserted; - - - The return value is &false; if an error occurred. - - - See also domdocument_create_element_ns, - domnode_append_child, - domdocument_create_text, - domdocument_create_comment, - domdocument_create_attribute, - domdocument_create_processing_instruction, - domdocument_create_entity_reference, and - domnode_insert_before. - - - - - diff --git a/reference/domxml/DomDocument/create-entity-reference.xml b/reference/domxml/DomDocument/create-entity-reference.xml deleted file mode 100644 index c0c6346d6b..0000000000 --- a/reference/domxml/DomDocument/create-entity-reference.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - DomDocument::create_entity_reference - - Create an entity reference - - - - &reftitle.description; - - domentityreferenceDomDocument::create_entity_reference - stringcontent - - - This function returns a new instance of class - DomEntityReference. The content of the entity - reference is the value of the passed parameter. &node.inserted; - - - The return value is &false; if an error occurred. - - - See also domnode_append_child, - domdocument_create_element, - domdocument_create_text, - domdocument_create_cdata_section, - domdocument_create_processing_instruction, - domdocument_create_attribute, and - domnode_insert_before. - - - - - diff --git a/reference/domxml/DomDocument/create-processing-instruction.xml b/reference/domxml/DomDocument/create-processing-instruction.xml deleted file mode 100644 index db9080fed2..0000000000 --- a/reference/domxml/DomDocument/create-processing-instruction.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - DomDocument::create_processing_instruction - Creates new PI node - - - &reftitle.description; - - domprocessinginstructionDomDocument::create_processing_instruction - stringcontent - - - This function returns a new instance of class - DomCData. The content of the pi is the - value of the passed parameter. - &node.inserted; - - - The return value is &false; if an error occurred. - - - See also domnode_append_child, - domdocument_create_element, - domdocument_create_text, - domdocument_create_cdata_section, - domdocument_create_attribute, - domdocument_create_entity_reference, and - domnode_insert_before. - - - - - diff --git a/reference/domxml/DomDocument/create-text-node.xml b/reference/domxml/DomDocument/create-text-node.xml deleted file mode 100644 index 1c9d1aaadd..0000000000 --- a/reference/domxml/DomDocument/create-text-node.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - DomDocument::create_text_node - Create new text node - - - &reftitle.description; - - domtextDomDocument::create_text_node - stringcontent - - - This function returns a new instance of class - DomText. The content of the text is the value of - the passed parameter. - &node.inserted; - - - The return value is &false; if an error occurred. - - - See also domnode_append_child, - domdocument_create_element, - domdocument_create_comment, - domdocument_create_text, - domdocument_create_attribute, - domdocument_create_processing_instruction, - domdocument_create_entity_reference, and - domnode_insert_before. - - - - - diff --git a/reference/domxml/DomDocument/doctype.xml b/reference/domxml/DomDocument/doctype.xml deleted file mode 100644 index 54ef28db6c..0000000000 --- a/reference/domxml/DomDocument/doctype.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - DomDocument::doctype - - Returns the document type - - - - &reftitle.description; - - domdocumenttypeDomDocument::doctype - - - - This function returns an object of class - DomDocumentType. In versions of - PHP before 4.3 this has been the class Dtd, - but the DOM Standard does not know such a class. - - - See also the methods of class DomDocumentType. - - - - - diff --git a/reference/domxml/DomDocument/document-element.xml b/reference/domxml/DomDocument/document-element.xml deleted file mode 100644 index eb3f7401b3..0000000000 --- a/reference/domxml/DomDocument/document-element.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - DomDocument::document_element - - Returns root element node - - - - &reftitle.description; - - domelementDomDocument::document_element - - - - This function returns the root element node of a document. - - - The following example returns just the element with name CHAPTER and - prints it. The other node -- the comment -- is not returned. - - Retrieving root element - -document_element(); -print_r($root); -?> -]]> - - &example.outputs; - - 1 - [tagname] => chapter - [0] => 6 - [1] => 137960648 -) -]]> - - - - - - - diff --git a/reference/domxml/DomDocument/dump-file.xml b/reference/domxml/DomDocument/dump-file.xml deleted file mode 100644 index f75adc5edb..0000000000 --- a/reference/domxml/DomDocument/dump-file.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - DomDocument::dump_file - - Dumps the internal XML tree back into a file - - - - &reftitle.description; - - stringDomDocument::dump_file - stringfilename - boolcompressionmode - boolformat - - - Creates an XML document from the dom representation. This function - usually is called after building a new dom document from scratch - as in the example below. The - format specifies whether the output should be - neatly formatted, or not. The first parameter specifies the name of the - filename and the second parameter, whether it should be compressed or not. - - - - Creating a simple HTML document header - -create_element("HTML"); -$root = $doc->append_child($root); -$head = $doc->create_element("HEAD"); -$head = $root->append_child($head); -$title = $doc->create_element("TITLE"); -$title = $head->append_child($title); -$text = $doc->create_text_node("This is the title"); -$text = $title->append_child($text); -$doc->dump_file("/tmp/test.xml", false, true); -?> -]]> - - - - - See also domdocument_dump_mem, and - domdocument_html_dump_mem. - - - - - diff --git a/reference/domxml/DomDocument/dump-mem.xml b/reference/domxml/DomDocument/dump-mem.xml deleted file mode 100644 index 98c599e139..0000000000 --- a/reference/domxml/DomDocument/dump-mem.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - DomDocument::dump_mem - - Dumps the internal XML tree back into a string - - - - &reftitle.description; - - stringDomDocument::dump_mem - boolformat - stringencoding - - - Creates an XML document from the dom representation. This function - usually is called after building a new dom document from scratch - as in the example below. The - format specifies whether the output should be - neatly formatted, or not. - - - - Creating a simple HTML document header - -create_element("HTML"); -$root = $doc->append_child($root); -$head = $doc->create_element("HEAD"); -$head = $root->append_child($head); -$title = $doc->create_element("TITLE"); -$title = $head->append_child($title); -$text = $doc->create_text_node("This is the title"); -$text = $title->append_child($text); -echo "
";
-echo htmlentities($doc->dump_mem(true));
-echo "
"; -?> -]]> -
-
-
- - - The first parameter was added in PHP 4.3.0. - - - - See also domdocument_dump_file, and - domdocument_html_dump_mem. - -
-
- - diff --git a/reference/domxml/DomDocument/get-element-by-id.xml b/reference/domxml/DomDocument/get-element-by-id.xml deleted file mode 100644 index 2f2e338c09..0000000000 --- a/reference/domxml/DomDocument/get-element-by-id.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - DomDocument::get_element_by_id - - Searches for an element with a certain id - - - - &reftitle.description; - - domelementDomDocument::get_element_by_id - stringid - - - This function is similar to - domdocument_get_elements_by_tagname 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, though the current - implementation simply does an xpath search for "//*[@ID = '%s']". This - does not comply to the DOM standard which requires to return null if it - is not known which attribute is of type id. This behaviour is likely to - be fixed, so do not rely on the current behaviour. - - - See also domdocument_get_elements_by_tagname - - - - - diff --git a/reference/domxml/DomDocument/get-elements-by-tagname.xml b/reference/domxml/DomDocument/get-elements-by-tagname.xml deleted file mode 100644 index f0ed4b282d..0000000000 --- a/reference/domxml/DomDocument/get-elements-by-tagname.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - DomDocument::get_elements_by_tagname - - Returns array with nodes with given tagname in document or empty array, if not found - - - - &reftitle.description; - - arrayDomDocument::get_elements_by_tagname - stringname - - - - - See also domdocument_add_root - - - - - diff --git a/reference/domxml/DomDocument/html-dump-mem.xml b/reference/domxml/DomDocument/html-dump-mem.xml deleted file mode 100644 index 499589c721..0000000000 --- a/reference/domxml/DomDocument/html-dump-mem.xml +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - DomDocument::html_dump_mem - - Dumps the internal XML tree back into a string as HTML - - - - &reftitle.description; - - stringDomDocument::html_dump_mem - - - - Creates an HTML document from the dom representation. This function - usually is called after building a new dom document from scratch - as in the example below. - - - - Creating a simple HTML document header - -create_element("html"); -$root = $doc->append_child($root); - -$head = $doc->create_element("head"); -$head = $root->append_child($head); - -$title = $doc->create_element("title"); -$title = $head->append_child($title); - -$text = $doc->create_text_node("This is the title"); -$text = $title->append_child($text); - -echo $doc->html_dump_mem(); -?> -]]> - - &example.outputs; - -This is the title -]]> - - - - - See also domdocument_dump_file, and - domdocument_html_dump_mem. - - - - - diff --git a/reference/domxml/DomDocument/xinclude.xml b/reference/domxml/DomDocument/xinclude.xml deleted file mode 100644 index 6a3dd4ef48..0000000000 --- a/reference/domxml/DomDocument/xinclude.xml +++ /dev/null @@ -1,91 +0,0 @@ - - - - - DomDocument::xinclude - - Substitutes XIncludes in a DomDocument Object - - - - &reftitle.description; - - intDomDocument::xinclude - - - - This function substitutes XIncludes in a DomDocument object. - - - - Substituting Xincludes - -test - -$xml = ' - - - - xinclude: include.xml not found - - -'; - -$domxml = domxml_open_mem($xml); -$domxml->xinclude(); - -echo $domxml->dump_mem(); - -?> -]]> - - &example.outputs; - - - - test - -]]> - - - If include.xml doesn't exist, you'll see: - - - - - xinclude:dom.xml not found - -]]> - - - - - - - diff --git a/reference/domxml/DomDocumentType/entities.xml b/reference/domxml/DomDocumentType/entities.xml deleted file mode 100644 index 6a525b98ab..0000000000 --- a/reference/domxml/DomDocumentType/entities.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - DomDocumentType::entities - - Returns list of entities - - - - &reftitle.description; - - arrayDomDocumentType::entities - - - - &warn.undocumented.func; - - - - Migrating to PHP 5 - - Use the entities property of the - DOMDocumentType object. - - - - - diff --git a/reference/domxml/DomDocumentType/internal-subset.xml b/reference/domxml/DomDocumentType/internal-subset.xml deleted file mode 100644 index 7e74a37687..0000000000 --- a/reference/domxml/DomDocumentType/internal-subset.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - DomDocumentType::internal_subset - - Returns internal subset - - - - &reftitle.description; - - boolDomDocumentType::internal_subset - - - - &warn.undocumented.func; - - - - Migrating to PHP 5 - - Use the internalSubset property of the - DOMDocumentType object. - - - - - diff --git a/reference/domxml/DomDocumentType/name.xml b/reference/domxml/DomDocumentType/name.xml deleted file mode 100644 index 1b273dc97a..0000000000 --- a/reference/domxml/DomDocumentType/name.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - DomDocumentType::name - - Returns name of document type - - - - &reftitle.description; - - stringDomDocumentType::name - - - - This function returns the name of the document type. - - - - &reftitle.returnvalues; - - Returns the name of the DomDocumentType, as a - string. - - - - &reftitle.examples; - - - Getting the document type's name - -doctype(); -echo $doctype->name(); // chapter - -?> -]]> - - - - - - Migrating to PHP 5 - - Use the name property of the - DOMDocumentType object. - - - - - diff --git a/reference/domxml/DomDocumentType/notations.xml b/reference/domxml/DomDocumentType/notations.xml deleted file mode 100644 index 7c6fa90a8e..0000000000 --- a/reference/domxml/DomDocumentType/notations.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - DomDocumentType::notations - - Returns list of notations - - - - &reftitle.description; - - arrayDomDocumentType::notations - - - - &warn.undocumented.func; - - - - Migrating to PHP 5 - - Use the notations property of the - DOMDocumentType object. - - - - - diff --git a/reference/domxml/DomDocumentType/public-id.xml b/reference/domxml/DomDocumentType/public-id.xml deleted file mode 100644 index a8e56ba0fa..0000000000 --- a/reference/domxml/DomDocumentType/public-id.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - - DomDocumentType::public_id - - Returns public id of document type - - - - &reftitle.description; - - stringDomDocumentType::public_id - - - - This function returns the public id of the document type. - - - - &reftitle.returnvalues; - - Returns the public id of the DomDocumentType, as a - string. - - - - &reftitle.examples; - - The following example echos nothing. - - Retrieving the public id - -doctype(); -echo $doctype->public_id(); -?> -]]> - - - - - - Migrating to PHP 5 - - Use the publicId property of the - DOMDocumentType object. - - - - - diff --git a/reference/domxml/DomDocumentType/system-id.xml b/reference/domxml/DomDocumentType/system-id.xml deleted file mode 100644 index f05645eab1..0000000000 --- a/reference/domxml/DomDocumentType/system-id.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - - DomDocumentType::system_id - - Returns the system id of document type - - - - &reftitle.description; - - stringDomDocumentType::system_id - - - - Returns the system id of the document type. - - - - &reftitle.returnvalues; - - Returns the system id of the DomDocumentType, as a - string. - - - - &reftitle.examples; - - - Retrieving the system id - -doctype(); -echo $doctype->system_id(); -?> -]]> - - &example.outputs; - - - - - - - - Migrating to PHP 5 - - Use the systemId property of the - DOMDocumentType object. - - - - - diff --git a/reference/domxml/DomElement/get-attribute-node.xml b/reference/domxml/DomElement/get-attribute-node.xml deleted file mode 100644 index 69da8bedaa..0000000000 --- a/reference/domxml/DomElement/get-attribute-node.xml +++ /dev/null @@ -1,106 +0,0 @@ - - - - - DomElement::get_attribute_node - - Returns the node of the given attribute - - - - &reftitle.description; - - DomAttributeDomElement::get_attribute_node - stringname - - - Returns the node of the given attribute in the current element. - - - - &reftitle.parameters; - - - - name - - - The name of the seeked attribute. This parameter is case sensitive. - - - - - - - - &reftitle.returnvalues; - - Returns the node of the attribute as a DomAttribute - or &false; if no attribute with the given name is - found. - - - - &reftitle.examples; - - - Getting an attribute node - -document_element(); -if ($attribute = $root->get_attribute_node('language')) { - echo 'Language is: ' . $attribute->value() . "\n"; -} - -?> -]]> - - - - - - Migrating to PHP 5 - - Use . - - - - &reftitle.seealso; - - - - - - - - - - diff --git a/reference/domxml/DomElement/get-attribute.xml b/reference/domxml/DomElement/get-attribute.xml deleted file mode 100644 index 51cbccad5b..0000000000 --- a/reference/domxml/DomElement/get-attribute.xml +++ /dev/null @@ -1,108 +0,0 @@ - - - - - DomElement::get_attribute - - Returns the value of the given attribute - - - - &reftitle.description; - - stringDomElement::get_attribute - stringname - - - Returns the value of the given attribute in the current element. - - - Since PHP 4.3, if no attribute with given name is - found, an empty string is returned. - - - - &reftitle.parameters; - - - - name - - - The name of the seeked attribute. This parameter is case sensitive. - - - - - - - - &reftitle.returnvalues; - - Returns the value of the attribute as a string or an empty string if no - attribute with the given name is found. - - - - &reftitle.examples; - - - Getting the value of an attribute - -document_element(); -echo $root->get_attribute('language'); // en - -?> -]]> - - - - - - Migrating to PHP 5 - - Use . - - - - &reftitle.seealso; - - - - - - - - - - diff --git a/reference/domxml/DomElement/get-elements-by-tagname.xml b/reference/domxml/DomElement/get-elements-by-tagname.xml deleted file mode 100644 index 603376fd12..0000000000 --- a/reference/domxml/DomElement/get-elements-by-tagname.xml +++ /dev/null @@ -1,96 +0,0 @@ - - - - - DomElement::get_elements_by_tagname - - Gets elements by tagname - - - - &reftitle.description; - - arrayDomElement::get_elements_by_tagname - stringname - - - Gets all the sub elements with the specific name - within the current element. - - - - &reftitle.parameters; - - - - name - - - The name of the seeked element. - - - - - - - - &reftitle.returnvalues; - - Returns an array of DomElement objects. - - - - &reftitle.examples; - - - Getting a content - -document_element(); - -$node_array = $root->get_elements_by_tagname('element'); - -foreach ($node_array as $node) { - echo ' - ' . $node->get_content() . "\n"; -} - -?> -]]> - - - - - - Migrating to PHP 5 - - Use . - - - - - diff --git a/reference/domxml/DomElement/has-attribute.xml b/reference/domxml/DomElement/has-attribute.xml deleted file mode 100644 index 157c4ea1b1..0000000000 --- a/reference/domxml/DomElement/has-attribute.xml +++ /dev/null @@ -1,100 +0,0 @@ - - - - - DomElement::has_attribute - - Checks to see if an attribute exists in the current node - - - - &reftitle.description; - - boolDomElement::has_attribute - stringname - - - This functions checks to see if an attribute named - name exists in the current node. - - - - &reftitle.parameters; - - - - name - - - The name of the tested attribute. - - - - - - - - &reftitle.returnvalues; - - Returns &true; if the asked attribute exists, &false; otherwise. - - - - &reftitle.examples; - - - Testing the existence of an attribute - -document_element(); - -$buffer = 'has_attribute('language')) { - $buffer .= 'lang="' . $root->get_attribute('language') . '"'; -} -$buffer .= '>'; - -?> - -]]> - - - - - - Migrating to PHP 5 - - Use . - - - - - diff --git a/reference/domxml/DomElement/remove-attribute.xml b/reference/domxml/DomElement/remove-attribute.xml deleted file mode 100644 index 5238f37ee0..0000000000 --- a/reference/domxml/DomElement/remove-attribute.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - DomElement::remove_attribute - - Removes attribute - - - - &reftitle.description; - - boolDomElement::remove_attribute - stringname - - - Removes an attribute from the current DomElement - node. - - - - &reftitle.parameters; - - - - name - - - The name of the attribute to remove. - - - - - - - - &reftitle.returnvalues; - - &return.success; - - - - Migrating to PHP 5 - - Use . - - - - - diff --git a/reference/domxml/DomElement/set-attribute-node.xml b/reference/domxml/DomElement/set-attribute-node.xml deleted file mode 100644 index 98fb17d026..0000000000 --- a/reference/domxml/DomElement/set-attribute-node.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - DomElement::set_attribute_node - - Adds new attribute - - - - &reftitle.description; - - DomNodeDomElement::set_attribute_node - DomNodeattr - - - &warn.undocumented.func; - - - - diff --git a/reference/domxml/DomElement/set-attribute.xml b/reference/domxml/DomElement/set-attribute.xml deleted file mode 100644 index 0b3641273a..0000000000 --- a/reference/domxml/DomElement/set-attribute.xml +++ /dev/null @@ -1,107 +0,0 @@ - - - - - DomElement::set_attribute - - Sets the value of an attribute - - - - &reftitle.description; - - DomAttributeDomElement::set_attribute - stringname - stringvalue - - - Sets an attribute with name name to the given - value. - - - - &reftitle.parameters; - - - - name - - - The name of the attribute. If this attribute doesn't exist, it will be - created. - - - - - value - - - The value of the attribute. - - - - - - - - &reftitle.returnvalues; - - Returns the old DomAttribute node, or the new one - if you are creating the attribute for the first time. - - - - &reftitle.examples; - - - Setting an attribute - -create_element("para"); -$newnode = $doc->append_child($node); -$newnode->set_attribute("align", "left"); -?> -]]> - - - - - - Migrating to PHP 5 - - Use . - - - - &reftitle.seealso; - - - - - - - - - - diff --git a/reference/domxml/DomElement/tagname.xml b/reference/domxml/DomElement/tagname.xml deleted file mode 100644 index 2e7ef632e9..0000000000 --- a/reference/domxml/DomElement/tagname.xml +++ /dev/null @@ -1,85 +0,0 @@ - - - - - DomElement::tagname - - Returns the name of the current element - - - - &reftitle.description; - - stringDomElement::tagname - - - - Returns the name of the current node. Calling this function is the same - as accessing the tagname property, or calling - on the current node. - - - - &reftitle.returnvalues; - - Returns the name of the current DomElement node. - - - - &reftitle.examples; - - - Getting the node name - -document_element(); -echo $root->tagname(); // chapter -echo $root->tagname; // chapter -echo $root->node_name(); // chapter - - -?> - -]]> - - - - - - Migrating to PHP 5 - - Use the tagName property of the - DOMElement object. - - - - - diff --git a/reference/domxml/DomNode/add-namespace.xml b/reference/domxml/DomNode/add-namespace.xml deleted file mode 100644 index 7161923ea6..0000000000 --- a/reference/domxml/DomNode/add-namespace.xml +++ /dev/null @@ -1,100 +0,0 @@ - - - - - DomNode::add_namespace - - Adds a namespace declaration to a node - - - - &reftitle.description; - - boolDOMNode::add_namespace - stringuri - stringprefix - - - This method adds a namespace declaration to a node. - - - - This method is not part of the DOM specification. - - - - - &reftitle.parameters; - - - - uri - - - The namespace URI of the node. - - - - - prefix - - - The namespace prefix of the node. - - - - - - - - &reftitle.returnvalues; - - &return.success; - - - - Migrating to PHP 5 - - You can set the namespace URI and prefix of a DOMElement - or a DOMAttr at creation time by using - or - . - - - - Remember the an attribute does not inherit its namespace from the element - it is attached to. - - - - - &reftitle.seealso; - - - - - - - - - - diff --git a/reference/domxml/DomNode/append-child.xml b/reference/domxml/DomNode/append-child.xml deleted file mode 100644 index 2ee77603f3..0000000000 --- a/reference/domxml/DomNode/append-child.xml +++ /dev/null @@ -1,223 +0,0 @@ - - - - - DomNode::append_child - - Adds a new child at the end of the children - - - - &reftitle.description; - - DOMNodeDOMNode::append_child - DOMNodenewnode - - - This functions appends a child to an existing list of children or creates - a new list of children. - - - - &reftitle.parameters; - - - - newnode - - - The node being appended. It can be created with e.g. - , - etc. or - simply by using any other node. - - - - You can not append a DOMAttribute using this - method. Use - instead. - - - - - - - - - &reftitle.returnvalues; - - Returns the appended node on success&return.falseforfailure;. - - - - &reftitle.changelog; - - - - - - &Version; - &Description; - - - - - 4.3.0 - - You are not allowed anymore to insert a node from another document. - - - - 4.3.0 - - Prior to PHP 4.3.0, the new child is duplicated before being - appended. - Therefore the new child is a completely new copy which can be - modified without changing the node which was passed to this function. - If the node passed has children itself, they will be duplicated as - well, which makes it quite easy to duplicate large parts of an XML - document. The return value is the appended child. If you plan to do - further modifications on the appended child you must use the returned - node. - - - - 4.3.0 and 4.3.1 - - The new child newnode is first unlinked from - its existing context, if it's already a child of DomNode. Therefore - the newnode is moved and not copies anymore. - This is the behaviour according to the W3C specifications. If you - need the old behaviour, use before appending. - - - - 4.3.2 - - The new child newnode is first unlinked from - its existing context, if it's already in the tree. Same rules apply. - - - - - - - - - &reftitle.examples; - - The following example adds a new element node to a fresh document and sets - the attribute align to left. - - - - Adding a child - -create_element("para"); -$newnode = $doc->append_child($node); -$newnode->set_attribute("align", "left"); -?> -]]> - - - - - The above example could also be written as the following: - - - - Adding a child - -create_element("para"); -$node->set_attribute("align", "left"); -$newnode = $doc->append_child($node); -?> -]]> - - - - - A more complex example is the one below. It first searches for a certain - element, duplicates it including its children and adds it as a sibling. - Finally a new attribute is added to one of the children of the new sibling - and the whole document is dumped. - - - - Adding a child - -get_elements_by_tagname("informaltable"); -print_r($elements); -$element = $elements[0]; - -$parent = $element->parent_node(); -$newnode = $parent->append_child($element); -$children = $newnode->children(); -$attr = $children[1]->set_attribute("align", "left"); - -$xmlfile = $dom->dump_mem(); -echo htmlentities($xmlfile); -?> -]]> - - - - - The above example could also be done with - instead of - . - - - - Migrating to PHP 5 - - You should use . - - - - &reftitle.seealso; - - - - - - - - - - diff --git a/reference/domxml/DomNode/append-sibling.xml b/reference/domxml/DomNode/append-sibling.xml deleted file mode 100644 index b6a98c1877..0000000000 --- a/reference/domxml/DomNode/append-sibling.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - DomNode::append_sibling - - Adds new sibling to a node - - - - &reftitle.description; - - domelementDomNode::append_sibling - domelementnewnode - - - This functions appends a sibling to an existing node. - The child can be created with e.g. - domdocument_create_element, - domdocument_create_text etc. or simply by using any - other node. - - - Before a new sibling is added it is first duplicated. Therefore the new - child is a completely new copy which can be modified without changing the - node which was passed to this function. If the node passed has children - itself, they will be duplicated as well, which makes it quite easy to - duplicate large parts of an XML document. The return value is the - added sibling. If you plan to do further modifications on the added - sibling you must use the returned node. - - - This function has been added to provide the behaviour of - domnode_append_child as it works till PHP 4.2. - - - See also domnode_append_before. - - - - - diff --git a/reference/domxml/DomNode/attributes.xml b/reference/domxml/DomNode/attributes.xml deleted file mode 100644 index 98e03bdd1c..0000000000 --- a/reference/domxml/DomNode/attributes.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - DomNode::attributes - - Returns list of attributes - - - - &reftitle.description; - - arrayDomNode::attributes - - - - This function only returns an array of attributes if the node is of - type XML_ELEMENT_NODE. - - - (PHP >= 4.3 only) If no attributes are found, NULL is returned. - - - - - diff --git a/reference/domxml/DomNode/child-nodes.xml b/reference/domxml/DomNode/child-nodes.xml deleted file mode 100644 index 04b4f5c327..0000000000 --- a/reference/domxml/DomNode/child-nodes.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - DomNode::child_nodes - - Returns children of node - - - - &reftitle.description; - - arrayDomNode::child_nodes - - - - Returns all children of the node. - - - See also domnode_next_sibling, and - domnode_previous_sibling. - - - - - diff --git a/reference/domxml/DomNode/clone-node.xml b/reference/domxml/DomNode/clone-node.xml deleted file mode 100644 index 2e6a053fc7..0000000000 --- a/reference/domxml/DomNode/clone-node.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - DomNode::clone_node - - Clones a node - - - - &reftitle.description; - - domelementDomNode::clone_node - - - - &warn.undocumented.func; - - - - - diff --git a/reference/domxml/DomNode/dump-node.xml b/reference/domxml/DomNode/dump-node.xml deleted file mode 100644 index 25a0d9be22..0000000000 --- a/reference/domxml/DomNode/dump-node.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - DomNode::dump_node - - Dumps a single node - - - - &reftitle.description; - - stringDomNode::dump_node - - - - &warn.undocumented.func; - - - See also domdocument_dump_mem. - - - - - diff --git a/reference/domxml/DomNode/first-child.xml b/reference/domxml/DomNode/first-child.xml deleted file mode 100644 index c283c1ca83..0000000000 --- a/reference/domxml/DomNode/first-child.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - DomNode::first_child - - Returns first child of node - - - - &reftitle.description; - - domelementDomNode::first_child - - - - Returns the first child of the node. - - - (PHP >= 4.3 only) If no first child is found, NULL is returned. - - - See also domnode_last_child, and - domnode_next_sibling, - domnode_previous_sibling. - - - - - diff --git a/reference/domxml/DomNode/get-content.xml b/reference/domxml/DomNode/get-content.xml deleted file mode 100644 index e501ab556d..0000000000 --- a/reference/domxml/DomNode/get-content.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - DomNode::get_content - - Gets content of node - - - - &reftitle.description; - - stringDomNode::get_content - - - - This function returns the content of the actual node. - - - - Getting a content - -document_element(); - -$node_array = $root->get_elements_by_tagname("element"); - -for ($i = 0; $iget_content(); -} - -?> -]]> - - - - - - - diff --git a/reference/domxml/DomNode/has-attributes.xml b/reference/domxml/DomNode/has-attributes.xml deleted file mode 100644 index c513e4d5ac..0000000000 --- a/reference/domxml/DomNode/has-attributes.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - DomNode::has_attributes - - Checks if node has attributes - - - - &reftitle.description; - - boolDomNode::has_attributes - - - - This function checks if the node has attributes. - - - See also domnode_has_child_nodes. - - - - - diff --git a/reference/domxml/DomNode/has-child-nodes.xml b/reference/domxml/DomNode/has-child-nodes.xml deleted file mode 100644 index d5c8a6b0da..0000000000 --- a/reference/domxml/DomNode/has-child-nodes.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - DomNode::has_child_nodes - - Checks if node has children - - - - &reftitle.description; - - boolDomNode::has_child_nodes - - - - This function checks if the node has children. - - - See also domnode_child_nodes. - - - - - diff --git a/reference/domxml/DomNode/insert-before.xml b/reference/domxml/DomNode/insert-before.xml deleted file mode 100644 index e2c1c44b4d..0000000000 --- a/reference/domxml/DomNode/insert-before.xml +++ /dev/null @@ -1,90 +0,0 @@ - - - - - DomNode::insert_before - - Inserts new node as child - - - - &reftitle.description; - - domelementDomNode::insert_before - domelementnewnode - domelementrefnode - - - This function inserts the new node newnode right - before the node refnode. The return value is the - inserted node. If you plan to do further modifications on the appended - child you must use the returned node. - - - (PHP >= 4.3 only) If newnode already is part of a - document, it will be first unlinked from its existing context. If - refnode is NULL, then newnode - will be inserted at the end of the list of children. - - - domnode_insert_before is very similar to - domnode_append_child as the following example shows - which does the same as the example at - domnode_append_child. - - - - Adding a child - -get_elements_by_tagname("informaltable"); -print_r($elements); -$element = $elements[0]; - -$newnode = $element->insert_before($element, $element); -$children = $newnode->children(); -$attr = $children[1]->set_attribute("align", "left"); - -echo "
";
-$xmlfile = $dom->dump_mem();
-echo htmlentities($xmlfile);
-echo "
"; -?> -]]> -
-
-
- - See also domnode_append_child. - -
-
- - diff --git a/reference/domxml/DomNode/is-blank-node.xml b/reference/domxml/DomNode/is-blank-node.xml deleted file mode 100644 index 51860df7a6..0000000000 --- a/reference/domxml/DomNode/is-blank-node.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - DomNode::is_blank_node - - Checks if node is blank - - - - &reftitle.description; - - boolDomNode::is_blank_node - - - - &warn.undocumented.func; - - - - - diff --git a/reference/domxml/DomNode/last-child.xml b/reference/domxml/DomNode/last-child.xml deleted file mode 100644 index f24276d392..0000000000 --- a/reference/domxml/DomNode/last-child.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - DomNode::last_child - - Returns last child of node - - - - &reftitle.description; - - domelementDomNode::last_child - - - - Returns the last child of the node. - - - (PHP >= 4.3 only) If no last child is found, NULL is returned. - - - See also domnode_first_child, and - domnode_next_sibling, - domnode_previous_sibling. - - - - - diff --git a/reference/domxml/DomNode/next-sibling.xml b/reference/domxml/DomNode/next-sibling.xml deleted file mode 100644 index 476ec85cf8..0000000000 --- a/reference/domxml/DomNode/next-sibling.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - DomNode::next_sibling - - Returns the next sibling of node - - - - &reftitle.description; - - domelementDomNode::next_sibling - - - - This function returns the next sibling of the current node. If there is - no next sibling it returns &false; (< 4.3) or null (>= 4.3). You can - use this function to iterate over all children of a node as shown in the - example. - - - - Iterate over children - -get_elements_by_tagname("tbody"); -$element = $elements[0]; -$child = $element->first_child(); - -while ($child) { - print_r($child); - $child = $child->next_sibling(); -} -?> -]]> - - - - - See also domnode_previous_sibling. - - - - - diff --git a/reference/domxml/DomNode/node-name.xml b/reference/domxml/DomNode/node-name.xml deleted file mode 100644 index 5fa0ae325f..0000000000 --- a/reference/domxml/DomNode/node-name.xml +++ /dev/null @@ -1,103 +0,0 @@ - - - - - DomNode::node_name - - Returns name of node - - - - &reftitle.description; - - stringDomNode::node_name - - - - Returns name of the node. The name has different meanings - for the different types of nodes as illustrated in the following table. - - Meaning of value - - - - Type - Meaning - - - - - DomAttribute - value of attribute - - - DomAttribute - - - - DomCDataSection - #cdata-section - - - DomComment - #comment - - - DomDocument - #document - - - DomDocumentType - document type name - - - DomElement - tag name - - - DomEntity - name of entity - - - DomEntityReference - name of entity reference - - - DomNotation - notation name - - - DomProcessingInstruction - target - - - DomText - #text - - - -
-
-
-
- - diff --git a/reference/domxml/DomNode/node-type.xml b/reference/domxml/DomNode/node-type.xml deleted file mode 100644 index c892c41b40..0000000000 --- a/reference/domxml/DomNode/node-type.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - - DomNode::node_type - - Returns type of node - - - - &reftitle.description; - - intDomNode::node_type - - - - Returns the type of the node. All possible types are listed in - the table in the introduction. - - - - -document_element(); - -// Let's see the elements contained in chapter -foreach($chapter->child_nodes() as $node) { - if ($node->node_type() == XML_ELEMENT_NODE) { - echo $node->node_name() . "\n"; - } -} - -?> -]]> - - &example.outputs; - - - - - - - - diff --git a/reference/domxml/DomNode/node-value.xml b/reference/domxml/DomNode/node-value.xml deleted file mode 100644 index e7eeeee876..0000000000 --- a/reference/domxml/DomNode/node-value.xml +++ /dev/null @@ -1,103 +0,0 @@ - - - - - DomNode::node_value - - Returns value of a node - - - - &reftitle.description; - - stringDomNode::node_value - - - - Returns value of the node. The value has different meanings - for the different types of nodes as illustrated in the following table. - - Meaning of value - - - - Type - Meaning - - - - - DomAttribute - value of attribute - - - DomAttribute - - - - DomCDataSection - content - - - DomComment - content of comment - - - DomDocument - null - - - DomDocumentType - null - - - DomElement - null - - - DomEntity - null - - - DomEntityReference - null - - - DomNotation - null - - - DomProcessingInstruction - entire content without target - - - DomText - content of text - - - -
-
-
-
- - diff --git a/reference/domxml/DomNode/owner-document.xml b/reference/domxml/DomNode/owner-document.xml deleted file mode 100644 index b4fd9415b4..0000000000 --- a/reference/domxml/DomNode/owner-document.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - DomNode::owner_document - - Returns the document this node belongs to - - - - &reftitle.description; - - domdocumentDomNode::owner_document - - - - This function returns the document the current node belongs to. - - - The following example will create two identical lists of children. - - Finding the document of a node - -create_element("para"); -$node = $doc->append_child($node); -$children = $doc->children(); -print_r($children); - -$doc2 = $node->owner_document(); -$children = $doc2->children(); -print_r($children); -?> -]]> - - - - - See also domnode_insert_before. - - - - - diff --git a/reference/domxml/DomNode/parent-node.xml b/reference/domxml/DomNode/parent-node.xml deleted file mode 100644 index 1d64c70436..0000000000 --- a/reference/domxml/DomNode/parent-node.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - DomNode::parent_node - - Returns the parent of the node - - - - &reftitle.description; - - domnodeDomNode::parent_node - - - - This function returns the parent node. - - - (PHP >= 4.3 only) If no parent is found, NULL is returned. - - - The following example will show two identical lists of children. - - Finding the document of a node - -create_element("para"); -$node = $doc->append_child($node); -$children = $doc->children(); -print_r($children); - -$doc2 = $node->parent_node(); -$children = $doc2->children(); -print_r($children); -?> -]]> - - - - - - - diff --git a/reference/domxml/DomNode/prefix.xml b/reference/domxml/DomNode/prefix.xml deleted file mode 100644 index 1fc7d2c4e4..0000000000 --- a/reference/domxml/DomNode/prefix.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - DomNode::prefix - - Returns name space prefix of node - - - - &reftitle.description; - - stringDomNode::prefix - - - - Returns the name space prefix of the node. - - - - - diff --git a/reference/domxml/DomNode/previous-sibling.xml b/reference/domxml/DomNode/previous-sibling.xml deleted file mode 100644 index 843432b25b..0000000000 --- a/reference/domxml/DomNode/previous-sibling.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - DomNode::previous_sibling - - Returns the previous sibling of node - - - - &reftitle.description; - - domelementDomNode::previous_sibling - - - - This function returns the previous sibling of the current node. If there - is no previous sibling it returns &false; (< 4.3) or &null; (>= 4.3). You - can use this function to iterate over all children of a node as shown in - the example. - - - See also domnode_next_sibling. - - - - - diff --git a/reference/domxml/DomNode/remove-child.xml b/reference/domxml/DomNode/remove-child.xml deleted file mode 100644 index 8a98a44fc3..0000000000 --- a/reference/domxml/DomNode/remove-child.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - DomNode::remove_child - - Removes child from list of children - - - - &reftitle.description; - - domtextDomNode::remove_child - domtextoldchild - - - This functions removes a child from a list of children. If child cannot - be removed or is not a child the function will return &false;. - If the child could be removed the functions returns the old child. - - - - Removing a child - -get_elements_by_tagname("tbody"); -$element = $elements[0]; -$children = $element->child_nodes(); -$child = $element->remove_child($children[0]); - -echo "
";
-$xmlfile = $dom->dump_mem(true);
-echo htmlentities($xmlfile);
-echo "
"; -?> -]]> -
-
-
- - See also domnode_append_child. - -
-
- - diff --git a/reference/domxml/DomNode/replace-child.xml b/reference/domxml/DomNode/replace-child.xml deleted file mode 100644 index 55f9511965..0000000000 --- a/reference/domxml/DomNode/replace-child.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - DomNode::replace_child - - Replaces a child - - - - &reftitle.description; - - domelementDomNode::replace_child - domelementnewnode - domelementoldnode - - - (PHP 4.2) This function replaces the child oldnode - with the passed new node. If the new node is already a child it - will not be added a second time. If the old node cannot be found - the function returns &false;. If the replacement succeeds the old node - is returned. - - - (PHP 4.3) This function replaces the child oldnode - with the passed newnode, even if the new node already - is a child of the DomNode. If newnode was already - inserted in the document it is first unlinked from its existing context. - If the old node cannot be found the function returns &false;. If the replacement - succeeds the old node is returned. (This behaviour is according to the W3C specs). - - - See also domnode_append_child - - - - - diff --git a/reference/domxml/DomNode/replace-node.xml b/reference/domxml/DomNode/replace-node.xml deleted file mode 100644 index d96fb91d71..0000000000 --- a/reference/domxml/DomNode/replace-node.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - DomNode::replace_node - - Replaces node - - - - &reftitle.description; - - domelementDomNode::replace_node - domelementnewnode - - - (PHP 4.2) This function replaces an existing node with the passed - new node. Before the replacement - newnode is copied if it has a parent to - make sure a node which is - already in the document will not be inserted a second time. This - behaviour enforces doing all modifications on the node before the - replacement or to refetch the inserted node afterwards with functions like - domnode_first_child, - domnode_child_nodes etc.. - - - (PHP 4.3) This function replaces an existing node with the passed new node. It is not - copied anymore. If newnode was already inserted in the document - it is first unlinked from its existing context. If the replacement succeeds the old - node is returned. - - - See also domnode_append_child - - - - - diff --git a/reference/domxml/DomNode/set-content.xml b/reference/domxml/DomNode/set-content.xml deleted file mode 100644 index 8848f428ef..0000000000 --- a/reference/domxml/DomNode/set-content.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - DomNode::set_content - - Sets content of node - - - - &reftitle.description; - - boolDomNode::set_content - stringcontent - - - &warn.undocumented.func; - - - - - diff --git a/reference/domxml/DomNode/set-name.xml b/reference/domxml/DomNode/set-name.xml deleted file mode 100644 index 3ec6557d64..0000000000 --- a/reference/domxml/DomNode/set-name.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - DomNode::set_name - - Sets name of node - - - - &reftitle.description; - - boolDomNode::set_name - - - - Sets name of node. - - - See also domnode_node_name. - - - - - diff --git a/reference/domxml/DomNode/set-namespace.xml b/reference/domxml/DomNode/set-namespace.xml deleted file mode 100644 index 1a1bc17e9c..0000000000 --- a/reference/domxml/DomNode/set-namespace.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - DomNode::set_namespace - - Sets namespace of a node - - - - &reftitle.description; - - voidDomNode::set_namespace - stringuri - stringprefix - - - Sets the namespace of a node to uri. - If there is already a namespace declaration with the same uri in one of the parent nodes - of the node, the prefix of this is taken, otherwise it will take the one provided - in the optional parameter prefix or generate a random one. - - - See also domdocument_create_element_ns, and - domnode_add_namespace - - - - - diff --git a/reference/domxml/DomNode/unlink-node.xml b/reference/domxml/DomNode/unlink-node.xml deleted file mode 100644 index 5b7e17eff2..0000000000 --- a/reference/domxml/DomNode/unlink-node.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - DomNode::unlink_node - - Deletes node - - - - &reftitle.description; - - voidDomNode::unlink_node - - - - &warn.undocumented.func; - - - - - diff --git a/reference/domxml/DomProcessingInstruction/data.xml b/reference/domxml/DomProcessingInstruction/data.xml deleted file mode 100644 index a8b78c5bb6..0000000000 --- a/reference/domxml/DomProcessingInstruction/data.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - DomProcessingInstruction::data - - Returns the data of ProcessingInstruction node - - - - &reftitle.description; - - public stringDomProcessingInstruction::data - - - - This method gets the data of the ProcessingInstruction node. - - - - &reftitle.returnvalues; - - Returns the data of the Processing Instruction. - - - - Migrating to PHP 5 - - Use the data property of - DOMProcessingInstruction. - - - - - diff --git a/reference/domxml/DomProcessingInstruction/target.xml b/reference/domxml/DomProcessingInstruction/target.xml deleted file mode 100644 index 650f1b0515..0000000000 --- a/reference/domxml/DomProcessingInstruction/target.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - DomProcessingInstruction::target - - Returns the target of a ProcessingInstruction node - - - - &reftitle.description; - - public stringDomProcessingInstruction::target - - - - This method gets the target of the ProcessingInstruction node. - - - - &reftitle.returnvalues; - - Returns the target of the Processing Instruction. - - - - Migrating to PHP 5 - - Use the target property of - DOMProcessingInstruction. - - - - - diff --git a/reference/domxml/DomXsltStylesheet/process.xml b/reference/domxml/DomXsltStylesheet/process.xml deleted file mode 100644 index 3d80aa2f91..0000000000 --- a/reference/domxml/DomXsltStylesheet/process.xml +++ /dev/null @@ -1,141 +0,0 @@ - - - - - DomXsltStylesheet::process - - Applies the XSLT-Transformation on a DomDocument Object - - - - &reftitle.description; - - DomDocumentDomXsltStylesheet::process - DomDocumentxml_doc - arrayxslt_params - boolis_xpath_param - stringprofile_filename - - - Applies an XSLT Transformation on the given - DomDocument object. - - - - &reftitle.parameters; - - - - xml_doc - - - The XML document being transformed, as a - DomDocument object. - - - - - xslt_params - - - An associative array that takes pairs of parameter names and values. - - - - - is_xpath_param - - - If set to &false; the values of the xslt_params - will be quoted. This is the default behavior. It allows you to pass - the values as PHP strings. - - - - If your strings contains both single and double quotes, you must take - care of quoting all the values by yourself and set this parameter to - &true;. - - - - - - profile_filename - - - Set this to the path of a filename, if you want profiling information. - - - - - - - - &reftitle.returnvalues; - - Returns the result of the processing, as a - DomDocument object. - - - - Migrating to PHP 5 - - Use XSLTProcessor::setParameter and - XSLTProcessor::transform-to-doc. - - - - &reftitle.changelog; - - - - - - &Version; - &Description; - - - - - 4.3.0 - - The profile_filename parameter was added. - - - - - - - - - &reftitle.seealso; - - - domxml_xslt_stylesheet - domxml_xslt_stylesheet_file - domxml_xslt_stylesheet_doc - - - - - - diff --git a/reference/domxml/DomXsltStylesheet/result-dump-file.xml b/reference/domxml/DomXsltStylesheet/result-dump-file.xml deleted file mode 100644 index 976305df0b..0000000000 --- a/reference/domxml/DomXsltStylesheet/result-dump-file.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - DomXsltStylesheet::result_dump_file - - Dumps the result from a XSLT-Transformation into a file - - - - &reftitle.description; - - stringDomXsltStylesheet::result_dump_file - DomDocumentxmldoc - stringfilename - - - Since always returns a - well-formed XML DomDocument, no matter what output method was declared in - ]]> and similar attributes/elements, it's of not much use, - if you want to output HTML 4 or text data. - - - This function on the contrary honors ]]> - and other output control directives. See the example for instruction on how to use it. - - - - &reftitle.examples; - - - Saving the result of a XSLT transformation in a file - -process($xmldoc); -echo $xsldoc->result_dump_file($result, "filename"); -?> -]]> - - - - - - &reftitle.seealso; - - - - - - - - - - diff --git a/reference/domxml/DomXsltStylesheet/result-dump-mem.xml b/reference/domxml/DomXsltStylesheet/result-dump-mem.xml deleted file mode 100644 index 0c43c4f272..0000000000 --- a/reference/domxml/DomXsltStylesheet/result-dump-mem.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - DomXsltStylesheet::result_dump_mem - - Dumps the result from a XSLT-Transformation back into a string - - - - &reftitle.description; - - stringDomXsltStylesheet::result_dump_mem - DomDocumentxmldoc - - - Since always returns - a well-formed XML DomDocument, no matter what output method was declared - in ]]> and similar attributes/elements, it's of not - much use, if you want to output HTML 4 or text data. - - - This function on the contrary honors ]]> - and other output control directives. See the example for instruction on how to use it. - - - - &reftitle.examples; - - - Outputting the result of a XSLT transformation - -process($xmldoc); -echo $xsldoc->result_dump_mem($result); -?> -]]> - - - - - - &reftitle.seealso; - - - - - - - - - - diff --git a/reference/domxml/book.xml b/reference/domxml/book.xml deleted file mode 100644 index 1b48e4a3ec..0000000000 --- a/reference/domxml/book.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - DOM XML (PHP 4) - - - - &reftitle.intro; - - The DOM XML extension has been overhauled in PHP 4.3.0 to better comply with - the DOM standard. The extension still contains - many old functions, but they should no longer be used. In particular, functions - that are not object-oriented should be avoided. - - - The extension allows you to operate on an XML document with the DOM API. - It also provides a function domxml_xmltree to turn the - complete XML document into a tree of PHP objects. Currently, this - tree should be considered read-only - you can modify it, but this - would not make any sense since DomDocument_dump_mem - cannot be - applied to it. Therefore, if you want to read an XML file and write - a modified version, use DomDocument_create_element, - DomDocument_create_text_node, - set_attribute, etc. and finally the - DomDocument_dump_mem function. - - - - &pecl.moved-ver;5.0.0. - - - - - This extension is no longer marked experimental. It will, however, never - be released with PHP 5, and will only be distributed with PHP 4. - If you need DOM XML support with PHP 5 you can use the - DOM extension. This - domxml extension is not compatible with the - DOM extension. - - - - - - &reference.domxml.setup; - &reference.domxml.constants; - &reference.domxml.reference; - - - - - diff --git a/reference/domxml/configure.xml b/reference/domxml/configure.xml deleted file mode 100644 index 0dd3297ed1..0000000000 --- a/reference/domxml/configure.xml +++ /dev/null @@ -1,53 +0,0 @@ - - -
- &reftitle.install; - - &pecl.moved; - &pecl.info; - &url.pecl.package;domxml. - - - &pecl.source.4; - This extension is only available if PHP was configured with - . Add - to include DOM - XSLT support. DIR is the libxslt install directory. Add - to include DOM - EXSLT support, where DIR is the libexslt install directory. - - - Windows users will enable php_domxml.dll inside - of &php.ini; in order to use these functions. - &pecl.windows.4; - &pecl.windows.download; - Also, there is one additional DLL that must be made available to your - system's PATH in order for this extension to work. In PHP 4 this is - in the dlls/ directory. It's name: - For PHP <= 4.2.0, it's libxml2.dll. - For PHP >= 4.3.0, it's iconv.dll. - And as of PHP 5.0.0, iconv is compiled into your Windows PHP binaries by - default so no extra DLL is needed. - -
- - diff --git a/reference/domxml/constants.xml b/reference/domxml/constants.xml deleted file mode 100644 index ec9fd903fa..0000000000 --- a/reference/domxml/constants.xml +++ /dev/null @@ -1,350 +0,0 @@ - - - - &reftitle.constants; - &extension.constants; - - XML constants - - - - Constant - Value - Description - - - - - - XML_ELEMENT_NODE - (integer) - - 1 - Node is an element - - - - XML_ATTRIBUTE_NODE - (integer) - - 2 - Node is an attribute - - - - XML_TEXT_NODE - (integer) - - 3 - Node is a piece of text - - - - XML_CDATA_SECTION_NODE - (integer) - - 4 - - - - - XML_ENTITY_REF_NODE - (integer) - - 5 - - - - - XML_ENTITY_NODE - (integer) - - 6 - Node is an entity like &nbsp; - - - - XML_PI_NODE - (integer) - - 7 - Node is a processing instruction - - - - XML_COMMENT_NODE - (integer) - - 8 - Node is a comment - - - - XML_DOCUMENT_NODE - (integer) - - 9 - Node is a document - - - - XML_DOCUMENT_TYPE_NODE - (integer) - - 10 - - - - - XML_DOCUMENT_FRAG_NODE - (integer) - - 11 - - - - - XML_NOTATION_NODE - (integer) - - 12 - - - - - XML_GLOBAL_NAMESPACE - (integer) - - 1 - - - - - XML_LOCAL_NAMESPACE - (integer) - - 2 - - - - - - - XML_HTML_DOCUMENT_NODE - (integer) - - - - - - - XML_DTD_NODE - (integer) - - - - - - - XML_ELEMENT_DECL_NODE - (integer) - - - - - - - XML_ATTRIBUTE_DECL_NODE - (integer) - - - - - - - XML_ENTITY_DECL_NODE - (integer) - - - - - - - XML_NAMESPACE_DECL_NODE - (integer) - - - - - - - XML_ATTRIBUTE_CDATA - (integer) - - - - - - - XML_ATTRIBUTE_ID - (integer) - - - - - - - XML_ATTRIBUTE_IDREF - (integer) - - - - - - - XML_ATTRIBUTE_IDREFS - (integer) - - - - - - - XML_ATTRIBUTE_ENTITY - (integer) - - - - - - - XML_ATTRIBUTE_NMTOKEN - (integer) - - - - - - - XML_ATTRIBUTE_NMTOKENS - (integer) - - - - - - - XML_ATTRIBUTE_ENUMERATION - (integer) - - - - - - - XML_ATTRIBUTE_NOTATION - (integer) - - - - - - - XPATH_UNDEFINED - (integer) - - - - - - - XPATH_NODESET - (integer) - - - - - - - XPATH_BOOLEAN - (integer) - - - - - - - XPATH_NUMBER - (integer) - - - - - - - XPATH_STRING - (integer) - - - - - - - XPATH_POINT - (integer) - - - - - - - XPATH_RANGE - (integer) - - - - - - - XPATH_LOCATIONSET - (integer) - - - - - - - XPATH_USERS - (integer) - - - - - - -
-
- - - diff --git a/reference/domxml/functions/domxml-new-doc.xml b/reference/domxml/functions/domxml-new-doc.xml deleted file mode 100644 index 20bed0153c..0000000000 --- a/reference/domxml/functions/domxml-new-doc.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - domxml_new_doc - - Creates new empty XML document - - - - &reftitle.description; - - DomDocumentdomxml_new_doc - stringversion - - - Creates a new Dom document from scratch and returns it. - - - - &reftitle.parameters; - - - - version - - - The XML version number of the document. - - - - - - - - &reftitle.returnvalues; - - Returns a new DomDocument instance. - - - - - diff --git a/reference/domxml/functions/domxml-open-file.xml b/reference/domxml/functions/domxml-open-file.xml deleted file mode 100644 index a6b79c87c2..0000000000 --- a/reference/domxml/functions/domxml-open-file.xml +++ /dev/null @@ -1,145 +0,0 @@ - - - - - domxml_open_file - Creates a DOM object from an XML file - - - &reftitle.description; - - DomDocumentdomxml_open_file - stringfilename - intmodeDOMXML_LOAD_PARSING - arrayerror - - - The function parses the XML document in the given file. - - - - &reftitle.parameters; - - - - filename - - - The path to the XML file. The file is accessed in read-only mode. - - - - - mode - - - This optional parameter can be used to change the behavior of this - function. - - - You can use one of the following constants for it: - DOMXML_LOAD_PARSING (default), - DOMXML_LOAD_VALIDATING or - DOMXML_LOAD_RECOVERING. - You can add to it also DOMXML_LOAD_DONT_KEEP_BLANKS, - DOMXML_LOAD_SUBSTITUTE_ENTITIES and - DOMXML_LOAD_COMPLETE_ATTRS by - bitwise or. - - - - - error - - - If used, it will contain the error messages. - error must be passed in by reference. - - - - - - - - &reftitle.returnvalues; - - Returns a DomDocument instance of the given file. - - - - &reftitle.examples; - - - Opening an XML document from a file - -document_element(); -?> -]]> - - - - - - &reftitle.changelog; - - - - - - &Version; - &Description; - - - - - 4.3.0 - - The parameters mode and - error were added. - - - - - - - - - &reftitle.seealso; - - - domxml_open_mem - domxml_new_doc - - - - - - diff --git a/reference/domxml/functions/domxml-open-mem.xml b/reference/domxml/functions/domxml-open-mem.xml deleted file mode 100644 index 2e2e0de7dd..0000000000 --- a/reference/domxml/functions/domxml-open-mem.xml +++ /dev/null @@ -1,149 +0,0 @@ - - - - - domxml_open_mem - Creates a DOM object of an XML document - - - &reftitle.description; - - DomDocumentdomxml_open_mem - stringstr - intmode - arrayerror - - - The function parses the XML document in the given string. - - - - &reftitle.parameters; - - - - str - - - The contents of the XML file. - - - - - mode - - - This optional parameter can be used to change the behavior of this - function. - - - You can use one of the following constants for it: - DOMXML_LOAD_PARSING (default), - DOMXML_LOAD_VALIDATING or - DOMXML_LOAD_RECOVERING. - You can add to it also DOMXML_LOAD_DONT_KEEP_BLANKS, - DOMXML_LOAD_SUBSTITUTE_ENTITIES and - DOMXML_LOAD_COMPLETE_ATTRS by - bitwise or. - - - - - error - - - If used, it will contain the error messages. - error must be passed in by reference. - - - - - - - - &reftitle.returnvalues; - - Returns a DomDocument instance of the given XML - contents. - - - - - &reftitle.changelog; - - - - - - &Version; - &Description; - - - - - 4.3.0 - - The mode and error - parameters were added. - - - - - - - - - - &reftitle.examples; - - - Opening an XML document in a string - -document_element(); -?> -]]> - - - - - - &reftitle.seealso; - - - domxml_open_file - domxml_new_doc - - - - - - diff --git a/reference/domxml/functions/domxml-version.xml b/reference/domxml/functions/domxml-version.xml deleted file mode 100644 index a2b02439e4..0000000000 --- a/reference/domxml/functions/domxml-version.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - domxml_version - - Gets the XML library version - - - - &reftitle.description; - - stringdomxml_version - - - - Gets the version of the XML library currently used. - - - - &reftitle.returnvalues; - - The version of the XML library, as a string. - - - - &reftitle.examples; - - - <function>domxml_version</function> Example - - -]]> - - &example.outputs.similar; - - - - - - - - - diff --git a/reference/domxml/functions/domxml-xmltree.xml b/reference/domxml/functions/domxml-xmltree.xml deleted file mode 100644 index a5858bbe5e..0000000000 --- a/reference/domxml/functions/domxml-xmltree.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - - domxml_xmltree - - Creates a tree of PHP objects from an XML document - - - - &reftitle.description; - - DomDocumentdomxml_xmltree - stringstr - - - The function parses the XML document in str and - returns a tree PHP objects as the parsed document. - - - This function is isolated from the other functions, which means you cannot - access the tree with any of the other functions. - Modifying it, for example by adding nodes, makes no sense since there - is currently no way to dump it as an XML file. - - - However this function may be valuable if you want to read a file and - investigate the content. - - - - &reftitle.parameters; - - - - str - - - The contents of the XML file. - - - - - - - - &reftitle.returnvalues; - - Returns a tree of Dom objects starting by a - DomDocument. - - - - - diff --git a/reference/domxml/functions/domxml-xslt-stylesheet-doc.xml b/reference/domxml/functions/domxml-xslt-stylesheet-doc.xml deleted file mode 100644 index 00af77540c..0000000000 --- a/reference/domxml/functions/domxml-xslt-stylesheet-doc.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - domxml_xslt_stylesheet_doc - - Creates a DomXsltStylesheet Object from a DomDocument Object - - - - &reftitle.description; - - DomXsltStylesheetdomxml_xslt_stylesheet_doc - DomDocumentxsl_doc - - - Creates a DomXsltStylesheet object from the given - XSL document. - - - - &reftitle.parameters; - - - - xsl_doc - - - The XSL document, as a DomDocument object. - - - - - - - - &reftitle.returnvalues; - - Returns a new instance of DomXsltStylesheet. - - - - Migrating to PHP 5 - - Call XSLTProcessor::importStylesheet with - the xsl_doc parameter. - - - - &reftitle.seealso; - - - - domxml_xslt_stylesheet - domxml_xslt_stylesheet_file - - - - - - diff --git a/reference/domxml/functions/domxml-xslt-stylesheet-file.xml b/reference/domxml/functions/domxml-xslt-stylesheet-file.xml deleted file mode 100644 index 8bfd14bee9..0000000000 --- a/reference/domxml/functions/domxml-xslt-stylesheet-file.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - domxml_xslt_stylesheet_file - - Creates a DomXsltStylesheet Object from an XSL document in a file - - - - &reftitle.description; - - DomXsltStylesheetdomxml_xslt_stylesheet_file - stringxsl_file - - - Creates a DomXsltStylesheet object from the given - XSL file. - - - - &reftitle.parameters; - - - - xsl_file - - - The path to the XSL document, as a string. - - - - - - - - &reftitle.returnvalues; - - Returns a new instance of DomXsltStylesheet. - - - - Migrating to PHP 5 - - Call XSLTProcessor::importStylesheet with - DOMDocument::load($xsl_file) as parameter. - - - - &reftitle.seealso; - - - - domxml_xslt_stylesheet - domxml_xslt_stylesheet_doc - - - - - - diff --git a/reference/domxml/functions/domxml-xslt-stylesheet.xml b/reference/domxml/functions/domxml-xslt-stylesheet.xml deleted file mode 100644 index f43c19f31a..0000000000 --- a/reference/domxml/functions/domxml-xslt-stylesheet.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - domxml_xslt_stylesheet - - Creates a DomXsltStylesheet object from an XSL document in a string - - - - &reftitle.description; - - DomXsltStylesheetdomxml_xslt_stylesheet - stringxsl_buf - - - Creates a DomXsltStylesheet object from the given - XSL buffer. - - - - &reftitle.parameters; - - - - xsl_buf - - - The XSL document, as a string. - - - - - - - - &reftitle.returnvalues; - - Returns a new instance of DomXsltStylesheet. - - - - Migrating to PHP 5 - - Call XSLTProcessor::importStylesheet with - DOMDocument::loadXML($xsl_buf) as parameter. - - - - &reftitle.seealso; - - - - domxml_xslt_stylesheet_file - domxml_xslt_stylesheet_doc - - - - - - diff --git a/reference/domxml/functions/domxml-xslt-version.xml b/reference/domxml/functions/domxml-xslt-version.xml deleted file mode 100644 index 435cace5ff..0000000000 --- a/reference/domxml/functions/domxml-xslt-version.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - - domxml_xslt_version - - Gets the XSLT library version - - - - &reftitle.description; - - intdomxml_xslt_version - - - - Gets the XSLT library version. - - - - &reftitle.returnvalues; - - Returns the version number of the XSLT library, as an integer. - - - - &reftitle.examples; - - - <function>domxml_xslt_version</function> Example - - -]]> - - &example.outputs.similar; - - - - - - - - &reftitle.seealso; - - - domxml_version - - - - - - diff --git a/reference/domxml/functions/xpath-eval-expression.xml b/reference/domxml/functions/xpath-eval-expression.xml deleted file mode 100644 index 8ab43ff79d..0000000000 --- a/reference/domxml/functions/xpath-eval-expression.xml +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - xpath_eval_expression - - Evaluates the XPath Location Path in the given string - - - - &reftitle.description; - - XPathObjectXPathContext::xpath_eval_expression - stringexpression - domnodecontextnode - - - XPathObjectxpath_eval_expression - XPathContextxpath_context - stringexpression - domnodecontextnode - - - - <function>xpath_eval_expression</function> Example - - -]]> - - &example.outputs; - - - int(1) - ["nodeset"]=> - array(1) { - [0]=> - object(domattribute)(5) { - ["type"]=> - int(2) - ["name"]=> - string(8) "language" - ["value"]=> - string(2) "en" - [0]=> - int(7) - [1]=> - int(138004256) - } - } -} -]]> - - - - - See also xpath_eval. - - - - - diff --git a/reference/domxml/functions/xpath-eval.xml b/reference/domxml/functions/xpath-eval.xml deleted file mode 100644 index f656df1538..0000000000 --- a/reference/domxml/functions/xpath-eval.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - xpath_eval - - Evaluates the XPath Location Path in the given string - - - - &reftitle.description; - - XPathObjectXPathContext::xpath_eval - stringxpath_expression - domnodecontextnode - - - XPathObjectxpath_eval - XPathContextxpath_context - stringxpath_expression - domnodecontextnode - - - The optional contextnode can be specified for doing relative XPath queries. - - - See also xpath_new_context. - - - - - diff --git a/reference/domxml/functions/xpath-new-context.xml b/reference/domxml/functions/xpath-new-context.xml deleted file mode 100644 index 2125ad4d8e..0000000000 --- a/reference/domxml/functions/xpath-new-context.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - xpath_new_context - - Creates new xpath context - - - - &reftitle.description; - - XPathContextxpath_new_context - domdocumentdom_document - - - Creates a new xpath context. - - - - &reftitle.seealso; - - - xpath_eval - - - - - - diff --git a/reference/domxml/functions/xpath-register-ns-auto.xml b/reference/domxml/functions/xpath-register-ns-auto.xml deleted file mode 100644 index ad96d4a9a4..0000000000 --- a/reference/domxml/functions/xpath-register-ns-auto.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - xpath_register_ns_auto - - Register the given namespace in the passed XPath context - - - - &reftitle.description; - - boolxpath_register_ns_auto - XPathContextxpath_context - objectcontext_node - - &warn.undocumented.func; - - - &reftitle.returnvalues; - - &return.success; - - - - &reftitle.seealso; - - - xpath_register_ns - - - - - - diff --git a/reference/domxml/functions/xpath-register-ns.xml b/reference/domxml/functions/xpath-register-ns.xml deleted file mode 100644 index f4924045e5..0000000000 --- a/reference/domxml/functions/xpath-register-ns.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - xpath_register_ns - - Register the given namespace in the passed XPath context - - - - &reftitle.description; - - boolxpath_register_ns - XPathContextxpath_context - stringprefix - stringuri - - &warn.undocumented.func; - - - &reftitle.returnvalues; - - &return.success; - - - - &reftitle.seealso; - - - xpath_register_ns_auto - - - - - - diff --git a/reference/domxml/functions/xptr-eval.xml b/reference/domxml/functions/xptr-eval.xml deleted file mode 100644 index bbf6fef63a..0000000000 --- a/reference/domxml/functions/xptr-eval.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - xptr_eval - - Evaluate the XPtr Location Path in the given string - - - - &reftitle.description; - - intXPathContext::xptr_eval - stringeval_str - domnodecontextnode - - - intxptr_eval - XPathContextxpath_context - stringeval_str - domnodecontextnode - - - &warn.undocumented.func; - - - - - diff --git a/reference/domxml/functions/xptr-new-context.xml b/reference/domxml/functions/xptr-new-context.xml deleted file mode 100644 index 94f4f9a4c3..0000000000 --- a/reference/domxml/functions/xptr-new-context.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - xptr_new_context - - Create new XPath Context - - - - &reftitle.description; - - XPathContextxptr_new_context - - - - &warn.undocumented.func; - - - - - diff --git a/reference/domxml/reference.xml b/reference/domxml/reference.xml deleted file mode 100644 index 2597681177..0000000000 --- a/reference/domxml/reference.xml +++ /dev/null @@ -1,733 +0,0 @@ - - - - - DOM XML (PHP 4) &Functions; - - -
- Deprecated functions - - There are quite a few functions that do not fit into the DOM standard and - should no longer be used. These functions are listed in the following table. - The function DomNode_append_child has changed its - behaviour. It now adds a child and not a sibling. If this - breaks your application, use the non-DOM function - DomNode_append_sibling. - - - - Deprecated functions and their replacements - - - - Old function - New function - - - - - xmldoc - domxml_open_mem - - - xmldocfile - domxml_open_file - - - domxml_new_xmldoc - domxml_new_doc - - - domxml_dump_mem - DomDocument_dump_mem - - - domxml_dump_mem_file - DomDocument_dump_file - - - DomDocument_dump_mem_file - DomDocument_dump_file - - - DomDocument_add_root - DomDocument_create_element followed by - DomNode_append_child - - - DomDocument_dtd - DomDocument_doctype - - - DomDocument_root - DomDocument_document_element - - - DomDocument_children - DomNode_child_nodes - - - DomDocument_imported_node - No replacement. - - - DomNode_add_child - Create a new node with e.g. - DomDocument_create_element and add it with - DomNode_append_child. - - - - DomNode_children - DomNode_child_nodes - - - DomNode_parent - DomNode_parent_node - - - DomNode_new_child - Create a new node with e.g. - DomDocument_create_element and add it with - DomNode_append_child. - - - - DomNode_set_content - Create a new node with e.g. - DomDocument_create_text_node and add it with - DomNode_append_child. - - - - DomNode_get_content - Content is just a text node and can be accessed with - DomNode_child_nodes. - - - - DomNode_set_content - Content is just a text node and can be added with - DomNode_append_child. - - - - -
-
-
- - -
- Classes - - The API of the module follows the DOM Level 2 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. - Though the API is object-oriented, there are many functions which can - be called in a non-object-oriented way by passing the object to operate - on as the first argument. These functions are mainly to retain compatibility - to older versions of the extension, and should not be used when creating new - scripts. - - - This API differs from the official DOM API in two ways. First, all - class attributes are implemented as functions with the same name. - Secondly, the function names follow the PHP naming convention. This means - that a DOM function lastChild() will be written as last_child(). - - - This module defines a number of classes, which are listed - - including their - method - in the following tables. Classes with an equivalent in the - DOM standard are named DOMxxx. - - - - - List of classes - - - - Class name - Parent classes - - - - - DomAttribute - DomNode - - - DomCData - DomNode - - - DomComment - DomCData : DomNode - - - DomDocument - DomNode - - - DomDocumentType - DomNode - - - DomElement - DomNode - - - DomEntity - DomNode - - - DomEntityReference - DomNode - - - DomProcessingInstruction - DomNode - - - DomText - DomCData : DomNode - - - Parser - Currently still called DomParser - - - XPathContext - - - - -
-
- - - - DomDocument class (DomDocument : DomNode) - - - - Method name - Function name - Remark - - - - - doctype - DomDocument_doctype - - - - document_element - DomDocument_document_element - - - - create_element - DomDocument_create_element - - - - create_text_node - DomDocument_create_text_node - - - - create_comment - DomDocument_create_comment - - - - create_cdata_section - DomDocument_create_cdata_section - - - - create_processing_instruction - DomDocument_create_processing_instruction - - - - create_attribute - DomDocument_create_attribute - - - - create_entity_reference - DomDocument_create_entity_reference - - - - get_elements_by_tagname - DomDocument_get_elements_by_tagname - - - - get_element_by_id - DomDocument_get_element_by_id - - - - dump_mem - DomDocument_dump_mem - not DOM standard - - - dump_file - DomDocument_dump_file - not DOM standard - - - html_dump_mem - DomDocument_html_dump_mem - not DOM standard - - - xpath_init - xpath_init - not DOM standard - - - xpath_new_context - xpath_new_context - not DOM standard - - - xptr_new_context - xptr_new_context - not DOM standard - - - -
-
- - - - DomElement class (DomElement : DomNode) - - - - Method name - Function name - Remark - - - - - tagname - DomElement_tagname - - - - get_attribute - DomElement_get_attribute - - - - set_attribute - DomElement_set_attribute - - - - remove_attribute - DomElement_remove_attribute - - - - get_attribute_node - DomElement_get_attribute_node - - - - set_attribute_node - DomElement_set_attribute_node - - - - - get_elements_by_tagname - DomElement_get_elements_by_tagname - - - - has_attribute - DomElement_has_attribute - - - - -
-
- - - - DomNode class - - - - Method name - Remark - - - - - DomNode_node_name - - - - DomNode_node_value - - - - DomNode_node_type - - - - DomNode_last_child - - - - DomNode_first_child - - - - DomNode_child_nodes - - - - DomNode_previous_sibling - - - - DomNode_next_sibling - - - - DomNode_parent_node - - - - DomNode_owner_document - - - - DomNode_insert_before - - - - DomNode_append_child - - - - DomNode_append_sibling - Not in DOM standard. This function emulates the former - behaviour of DomNode_append_child. - - - DomNode_remove_child - - - - DomNode_has_child_nodes - - - - DomNode_has_attributes - - - - DomNode_clone_node - - - - DomNode_attributes - - - - DomNode_unlink_node - Not in DOM standard - - - DomNode_replace_node - Not in DOM standard - - - DomNode_set_content - Not in DOM standard, deprecated - - - DomNode_get_content - Not in DOM standard, deprecated - - - DomNode_dump_node - Not in DOM standard - - - DomNode_is_blank_node - Not in DOM standard - - - -
-
- - - - DomAttribute class (DomAttribute : DomNode) - - - - Method name - - Remark - - - - - name - DomAttribute_name - - - - value - DomAttribute_value - - - - specified - DomAttribute_specified - - - - -
-
- - - - DomProcessingInstruction class (DomProcessingInstruction : DomNode) - - - - Method name - Function name - Remark - - - - - target - DomProcessingInstruction_target - - - - data - DomProcessingInstruction_data - - - - -
-
- - - - Parser class - - - - Method name - Function name - Remark - - - - - add_chunk - Parser_add_chunk - - - - end - Parser_end - - - - -
-
- - - - XPathContext class - - - - Method name - Function name - Remark - - - - - eval - XPathContext_eval - - - - eval_expression - XPathContext_eval_expression - - - - register_ns - XPathContext_register_ns - - - - -
-
- - - - DomDocumentType class (DomDocumentType : DomNode) - - - - Method name - Function name - Remark - - - - - name - DomDocumentType_name - - - - entities - DomDocumentType_entities - - - - notations - DomDocumentType_notations - - - - public_id - DomDocumentType_public_id - - - - system_id - DomDocumentType_system_id - - - - internal_subset - DomDocumentType_internal_subset - - - - -
-
- - - The classes DomDtd is derived from DomNode. DomComment is derived from - DomCData. - -
- -
- &reftitle.examples; - - Many examples in this reference require an XML string. Instead of - repeating this string in every example, it will be put into a file - which will be included by each example. This include file is shown in the - following example section. Alternatively, you could create an XML document and - read it with DomDocument_open_file. - - - - Include file example.inc with XML string - - - -]> - -Title - - &sp; - - - - - a1b1c1 -a2c2 - a3b3c3 - - - - -"; -?> -]]> - - - -
-
- -&reference.domxml.entities.DomAttribute; -&reference.domxml.entities.DomDocument; -&reference.domxml.entities.DomDocumentType; -&reference.domxml.entities.DomElement; -&reference.domxml.entities.DomNode; -&reference.domxml.entities.DomProcessingInstruction; -&reference.domxml.entities.DomXsltStylesheet; -&reference.domxml.entities.functions; - -
- diff --git a/reference/domxml/setup.xml b/reference/domxml/setup.xml deleted file mode 100644 index 3dcc2e768d..0000000000 --- a/reference/domxml/setup.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - - &reftitle.setup; - - -
- &reftitle.required; - - This extension makes use of the - GNOME XML library. Download - and install this library. You will need at least libxml-2.4.14. - To use DOM XSLT features you can use the - libxslt library and EXSLT - enhancements from &url.exslt;. - Download and install these libraries if you plan to use (enhanced) XSLT - features. You will need at least libxslt-1.0.18. - -
- - - - &reference.domxml.configure; - - - -
- &reftitle.runtime; - &no.config; -
- - - -
- &reftitle.resources; - &no.resource; -
- - -
- - - diff --git a/reference/domxml/versions.xml b/reference/domxml/versions.xml deleted file mode 100644 index 1353757d4b..0000000000 --- a/reference/domxml/versions.xml +++ /dev/null @@ -1,227 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -