mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
WS, prepare for new style
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@188209 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
fb9ffd82a6
commit
262e2e4dc7
29 changed files with 927 additions and 954 deletions
|
@ -1,28 +1,27 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
|
||||
<refentry id='function.domnode-add-namespace'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->add_namespace</refname>
|
||||
<refpurpose>
|
||||
Adds a namespace declaration to a node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DomNode->add_namespace</methodname>
|
||||
<methodparam><type>string</type><parameter>uri</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>prefix</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domdocument_create_element_ns</function>, and
|
||||
<function>domnode_set_namespace</function>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<refentry id='function.domnode-add-namespace'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->add_namespace</refname>
|
||||
<refpurpose>
|
||||
Adds a namespace declaration to a node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DomNode->add_namespace</methodname>
|
||||
<methodparam><type>string</type><parameter>uri</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>prefix</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domdocument_create_element_ns</function>, and
|
||||
<function>domnode_set_namespace</function>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,53 +1,52 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.12 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.40 -->
|
||||
<refentry id='function.domnode-append-child'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->append_child</refname>
|
||||
<refpurpose>
|
||||
Adds new child at the end of the children
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domelement</type><methodname>DomNode->append_child</methodname>
|
||||
<methodparam><type>domelement</type><parameter>newnode</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This functions appends a child to an existing list of children or creates
|
||||
a new list of children. The child can be created with e.g.
|
||||
<function>domdocument_create_element</function>,
|
||||
<function>domdocument_create_text</function> etc. or simply by using any
|
||||
other node.
|
||||
</para>
|
||||
<para>
|
||||
(PHP < 4.3) Before a new child is appended 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
|
||||
appended child. If you plan to do further modifications on the appended
|
||||
child you must use the returned node.
|
||||
</para>
|
||||
<para>
|
||||
(PHP 4.3.0/4.3.1) The new child <parameter>newnode</parameter> is first
|
||||
unlinked from its existing context, if it's already a child of DomNode.
|
||||
Therefore the node is moved and not copies anymore.
|
||||
</para>
|
||||
<para>
|
||||
(PHP >= 4.3.2) The new child <parameter>newnode</parameter> is first
|
||||
unlinked from its existing context, if it's already in the tree. Therefore
|
||||
the node is moved and not copied. This is the behaviour according to the
|
||||
W3C specifications. If you want to duplicate large parts of an XML document,
|
||||
use DomNode->clone_node() before appending.
|
||||
</para>
|
||||
<para>
|
||||
The following example will add a new element node to a fresh document
|
||||
and sets the attribute "align" to "left".
|
||||
<example>
|
||||
<title>Adding a child</title>
|
||||
<programlisting role="php">
|
||||
<!-- $Revision: 1.13 $ -->
|
||||
<refentry id='function.domnode-append-child'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->append_child</refname>
|
||||
<refpurpose>
|
||||
Adds new child at the end of the children
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domelement</type><methodname>DomNode->append_child</methodname>
|
||||
<methodparam><type>domelement</type><parameter>newnode</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This functions appends a child to an existing list of children or creates
|
||||
a new list of children. The child can be created with e.g.
|
||||
<function>domdocument_create_element</function>,
|
||||
<function>domdocument_create_text</function> etc. or simply by using any
|
||||
other node.
|
||||
</para>
|
||||
<para>
|
||||
(PHP < 4.3) Before a new child is appended 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
|
||||
appended child. If you plan to do further modifications on the appended
|
||||
child you must use the returned node.
|
||||
</para>
|
||||
<para>
|
||||
(PHP 4.3.0/4.3.1) The new child <parameter>newnode</parameter> is first
|
||||
unlinked from its existing context, if it's already a child of DomNode.
|
||||
Therefore the node is moved and not copies anymore.
|
||||
</para>
|
||||
<para>
|
||||
(PHP >= 4.3.2) The new child <parameter>newnode</parameter> is first
|
||||
unlinked from its existing context, if it's already in the tree. Therefore
|
||||
the node is moved and not copied. This is the behaviour according to the
|
||||
W3C specifications. If you want to duplicate large parts of an XML document,
|
||||
use DomNode->clone_node() before appending.
|
||||
</para>
|
||||
<para>
|
||||
The following example will add a new element node to a fresh document
|
||||
and sets the attribute "align" to "left".
|
||||
<example>
|
||||
<title>Adding a child</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$doc = domxml_new_doc("1.0");
|
||||
|
@ -56,12 +55,12 @@ $newnode = $doc->append_child($node);
|
|||
$newnode->set_attribute("align", "left");
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
The above example could also be written as the following:
|
||||
<example>
|
||||
<title>Adding a child</title>
|
||||
<programlisting role="php">
|
||||
</programlisting>
|
||||
</example>
|
||||
The above example could also be written as the following:
|
||||
<example>
|
||||
<title>Adding a child</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$doc = domxml_new_doc("1.0");
|
||||
|
@ -70,15 +69,15 @@ $node->set_attribute("align", "left");
|
|||
$newnode = $doc->append_child($node);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
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.
|
||||
<example>
|
||||
<title>Adding a child</title>
|
||||
<programlisting role="php">
|
||||
</programlisting>
|
||||
</example>
|
||||
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.
|
||||
<example>
|
||||
<title>Adding a child</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
include("example.inc");
|
||||
|
@ -103,18 +102,18 @@ echo htmlentities($xmlfile);
|
|||
echo "</pre>";
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
The above example could also be done with
|
||||
<function>domnode_insert_before</function> instead of
|
||||
<function>domnode_append_child</function>.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_insert_before</function>, and
|
||||
<function>domnode_clone_node</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
</programlisting>
|
||||
</example>
|
||||
The above example could also be done with
|
||||
<function>domnode_insert_before</function> instead of
|
||||
<function>domnode_append_child</function>.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_insert_before</function>, and
|
||||
<function>domnode_clone_node</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,43 +1,43 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<refentry id='function.domnode-append-sibling'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->append_sibling</refname>
|
||||
<refpurpose>
|
||||
Adds new sibling to a node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domelement</type><methodname>DomNode->append_sibling</methodname>
|
||||
<methodparam><type>domelement</type><parameter>newnode</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This functions appends a sibling to an existing node.
|
||||
The child can be created with e.g.
|
||||
<function>domdocument_create_element</function>,
|
||||
<function>domdocument_create_text</function> etc. or simply by using any
|
||||
other node.
|
||||
</para>
|
||||
<para>
|
||||
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.
|
||||
</para>
|
||||
<para>
|
||||
This function has been added to provide the behaviour of
|
||||
<function>domnode_append_child</function> as it works till PHP 4.2.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_append_before</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<refentry id='function.domnode-append-sibling'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->append_sibling</refname>
|
||||
<refpurpose>
|
||||
Adds new sibling to a node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domelement</type><methodname>DomNode->append_sibling</methodname>
|
||||
<methodparam><type>domelement</type><parameter>newnode</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This functions appends a sibling to an existing node.
|
||||
The child can be created with e.g.
|
||||
<function>domdocument_create_element</function>,
|
||||
<function>domdocument_create_text</function> etc. or simply by using any
|
||||
other node.
|
||||
</para>
|
||||
<para>
|
||||
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.
|
||||
</para>
|
||||
<para>
|
||||
This function has been added to provide the behaviour of
|
||||
<function>domnode_append_child</function> as it works till PHP 4.2.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_append_before</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,28 +1,27 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
|
||||
<refentry id='function.domnode-attributes'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->attributes</refname>
|
||||
<refpurpose>
|
||||
Returns list of attributes
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>array</type><methodname>DomNode->attributes</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function only returns an array of attributes if the node is of
|
||||
type XML_ELEMENT_NODE.
|
||||
</para>
|
||||
<para>
|
||||
(PHP >= 4.3 only) If no attributes are found, NULL is returned.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<refentry id='function.domnode-attributes'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->attributes</refname>
|
||||
<refpurpose>
|
||||
Returns list of attributes
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>array</type><methodname>DomNode->attributes</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function only returns an array of attributes if the node is of
|
||||
type XML_ELEMENT_NODE.
|
||||
</para>
|
||||
<para>
|
||||
(PHP >= 4.3 only) If no attributes are found, NULL is returned.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,28 +1,27 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
|
||||
<refentry id='function.domnode-child-nodes'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->child_nodes</refname>
|
||||
<refpurpose>
|
||||
Returns children of node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>array</type><methodname>DomNode->child_nodes</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns all children of the node.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_next_sibling</function>, and
|
||||
<function>domnode_previous_sibling</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<refentry id='function.domnode-child-nodes'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->child_nodes</refname>
|
||||
<refpurpose>
|
||||
Returns children of node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>array</type><methodname>DomNode->child_nodes</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns all children of the node.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_next_sibling</function>, and
|
||||
<function>domnode_previous_sibling</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,24 +1,23 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.39 -->
|
||||
<refentry id='function.domnode-clone-node'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->clone_node</refname>
|
||||
<refpurpose>
|
||||
Clones a node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domelement</type><methodname>DomNode->clone_node</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
&warn.undocumented.func;
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<refentry id='function.domnode-clone-node'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->clone_node</refname>
|
||||
<refpurpose>
|
||||
Clones a node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domelement</type><methodname>DomNode->clone_node</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
&warn.undocumented.func;
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,27 +1,26 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.39 -->
|
||||
<refentry id='function.domnode-dump-node'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->dump_node</refname>
|
||||
<refpurpose>
|
||||
Dumps a single node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DomNode->dump_node</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
&warn.undocumented.func;
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domdocument_dump_mem</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<refentry id='function.domnode-dump-node'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->dump_node</refname>
|
||||
<refpurpose>
|
||||
Dumps a single node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DomNode->dump_node</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
&warn.undocumented.func;
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domdocument_dump_mem</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,32 +1,31 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
|
||||
<refentry id='function.domnode-first-child'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->first_child</refname>
|
||||
<refpurpose>
|
||||
Returns first child of node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domelement</type><methodname>DomNode->first_child</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns the first child of the node.
|
||||
</para>
|
||||
<para>
|
||||
(PHP >= 4.3 only) If no first child is found, NULL is returned.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_last_child</function>, and
|
||||
<function>domnode_next_sibling</function>,
|
||||
<function>domnode_previous_sibling</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- $Revision: 1.10 $ -->
|
||||
<refentry id='function.domnode-first-child'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->first_child</refname>
|
||||
<refpurpose>
|
||||
Returns first child of node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domelement</type><methodname>DomNode->first_child</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns the first child of the node.
|
||||
</para>
|
||||
<para>
|
||||
(PHP >= 4.3 only) If no first child is found, NULL is returned.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_last_child</function>, and
|
||||
<function>domnode_next_sibling</function>,
|
||||
<function>domnode_previous_sibling</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,26 +1,25 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.39 -->
|
||||
<refentry id='function.domnode-get-content'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->get_content</refname>
|
||||
<refpurpose>
|
||||
Gets content of node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DomNode->get_content</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns the content of the actual node.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Getting a content</title>
|
||||
<programlisting role="php">
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<refentry id='function.domnode-get-content'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->get_content</refname>
|
||||
<refpurpose>
|
||||
Gets content of node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DomNode->get_content</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns the content of the actual node.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Getting a content</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
if (!$dom = domxml_open_mem($xmlstr)) {
|
||||
|
@ -39,11 +38,11 @@ for ($i = 0; $i<count($node_array); $i++) {
|
|||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,27 +1,26 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
|
||||
<refentry id='function.domnode-has-attributes'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->has_attributes</refname>
|
||||
<refpurpose>
|
||||
Checks if node has attributes
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DomNode->has_attributes</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function checks if the node has attributes.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_has_child_nodes</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<refentry id='function.domnode-has-attributes'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->has_attributes</refname>
|
||||
<refpurpose>
|
||||
Checks if node has attributes
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DomNode->has_attributes</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function checks if the node has attributes.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_has_child_nodes</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,27 +1,26 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
|
||||
<refentry id='function.domnode-has-child-nodes'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->has_child_nodes</refname>
|
||||
<refpurpose>
|
||||
Checks if node has children
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DomNode->has_child_nodes</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function checks if the node has children.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_child_nodes</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<refentry id='function.domnode-has-child-nodes'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->has_child_nodes</refname>
|
||||
<refpurpose>
|
||||
Checks if node has children
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DomNode->has_child_nodes</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function checks if the node has children.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_child_nodes</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,42 +1,41 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.10 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
|
||||
<refentry id='function.domnode-insert-before'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->insert_before</refname>
|
||||
<refpurpose>
|
||||
Inserts new node as child
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domelement</type><methodname>DomNode->insert_before</methodname>
|
||||
<methodparam><type>domelement</type><parameter>newnode</parameter></methodparam>
|
||||
<methodparam><type>domelement</type><parameter>refnode</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function inserts the new node <parameter>newnode</parameter> right
|
||||
before the node <parameter>refnode</parameter>. The return value is the
|
||||
inserted node. If you plan to do further modifications on the appended
|
||||
child you must use the returned node.
|
||||
</para>
|
||||
<para>
|
||||
(PHP >= 4.3 only) If <parameter>newnode</parameter> already is part of a
|
||||
document, it will be first unlinked from its existing context. If
|
||||
<parameter>refnode</parameter> is NULL, then <parameter>newnode</parameter>
|
||||
will be inserted at the end of the list of children.
|
||||
</para>
|
||||
<para>
|
||||
<function>domnode_insert_before</function> is very similar to
|
||||
<function>domnode_append_child</function> as the following example shows
|
||||
which does the same as the example at
|
||||
<function>domnode_append_child</function>.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Adding a child</title>
|
||||
<programlisting role="php">
|
||||
<!-- $Revision: 1.11 $ -->
|
||||
<refentry id='function.domnode-insert-before'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->insert_before</refname>
|
||||
<refpurpose>
|
||||
Inserts new node as child
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domelement</type><methodname>DomNode->insert_before</methodname>
|
||||
<methodparam><type>domelement</type><parameter>newnode</parameter></methodparam>
|
||||
<methodparam><type>domelement</type><parameter>refnode</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function inserts the new node <parameter>newnode</parameter> right
|
||||
before the node <parameter>refnode</parameter>. The return value is the
|
||||
inserted node. If you plan to do further modifications on the appended
|
||||
child you must use the returned node.
|
||||
</para>
|
||||
<para>
|
||||
(PHP >= 4.3 only) If <parameter>newnode</parameter> already is part of a
|
||||
document, it will be first unlinked from its existing context. If
|
||||
<parameter>refnode</parameter> is NULL, then <parameter>newnode</parameter>
|
||||
will be inserted at the end of the list of children.
|
||||
</para>
|
||||
<para>
|
||||
<function>domnode_insert_before</function> is very similar to
|
||||
<function>domnode_append_child</function> as the following example shows
|
||||
which does the same as the example at
|
||||
<function>domnode_append_child</function>.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Adding a child</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
include("example.inc");
|
||||
|
@ -60,14 +59,14 @@ echo htmlentities($xmlfile);
|
|||
echo "</pre>";
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_append_child</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_append_child</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,24 +1,23 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.39 -->
|
||||
<refentry id='function.domnode-is-blank-node'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->is_blank_node</refname>
|
||||
<refpurpose>
|
||||
Checks if node is blank
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DomNode->is_blank_node</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
&warn.undocumented.func;
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<refentry id='function.domnode-is-blank-node'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->is_blank_node</refname>
|
||||
<refpurpose>
|
||||
Checks if node is blank
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DomNode->is_blank_node</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
&warn.undocumented.func;
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,32 +1,31 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
|
||||
<refentry id='function.domnode-last-child'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->last_child</refname>
|
||||
<refpurpose>
|
||||
Returns last child of node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domelement</type><methodname>DomNode->last_child</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns the last child of the node.
|
||||
</para>
|
||||
<para>
|
||||
(PHP >= 4.3 only) If no last child is found, NULL is returned.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_first_child</function>, and
|
||||
<function>domnode_next_sibling</function>,
|
||||
<function>domnode_previous_sibling</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- $Revision: 1.10 $ -->
|
||||
<refentry id='function.domnode-last-child'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->last_child</refname>
|
||||
<refpurpose>
|
||||
Returns last child of node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domelement</type><methodname>DomNode->last_child</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns the last child of the node.
|
||||
</para>
|
||||
<para>
|
||||
(PHP >= 4.3 only) If no last child is found, NULL is returned.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_first_child</function>, and
|
||||
<function>domnode_next_sibling</function>,
|
||||
<function>domnode_previous_sibling</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,29 +1,28 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
|
||||
<refentry id='function.domnode-next-sibling'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->next_sibling</refname>
|
||||
<refpurpose>
|
||||
Returns the next sibling of node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domelement</type><methodname>DomNode->next_sibling</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
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.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Iterate over children</title>
|
||||
<programlisting role="php">
|
||||
<!-- $Revision: 1.10 $ -->
|
||||
<refentry id='function.domnode-next-sibling'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->next_sibling</refname>
|
||||
<refpurpose>
|
||||
Returns the next sibling of node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domelement</type><methodname>DomNode->next_sibling</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
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.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Iterate over children</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
include("example.inc");
|
||||
|
@ -43,14 +42,14 @@ while ($child) {
|
|||
}
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_previous_sibling</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_previous_sibling</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,86 +1,85 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
|
||||
<refentry id='function.domnode-node-name'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->node_name</refname>
|
||||
<refpurpose>
|
||||
Returns name of node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DomNode->node_name</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns name of the node. The name has different meanings
|
||||
for the different types of nodes as illustrated in the following table.
|
||||
<table>
|
||||
<title>Meaning of value</title>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>Type</entry>
|
||||
<entry>Meaning</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>DomAttribute</entry>
|
||||
<entry>value of attribute</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomAttribute</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomCDataSection</entry>
|
||||
<entry>#cdata-section</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomComment</entry>
|
||||
<entry>#comment</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomDocument</entry>
|
||||
<entry>#document</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomDocumentType</entry>
|
||||
<entry>document type name</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomElement</entry>
|
||||
<entry>tag name</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomEntity</entry>
|
||||
<entry>name of entity</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomEntityReference</entry>
|
||||
<entry>name of entity reference</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomNotation</entry>
|
||||
<entry>notation name</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomProcessingInstruction</entry>
|
||||
<entry>target</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomText</entry>
|
||||
<entry>#text</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<refentry id='function.domnode-node-name'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->node_name</refname>
|
||||
<refpurpose>
|
||||
Returns name of node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DomNode->node_name</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns name of the node. The name has different meanings
|
||||
for the different types of nodes as illustrated in the following table.
|
||||
<table>
|
||||
<title>Meaning of value</title>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>Type</entry>
|
||||
<entry>Meaning</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>DomAttribute</entry>
|
||||
<entry>value of attribute</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomAttribute</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomCDataSection</entry>
|
||||
<entry>#cdata-section</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomComment</entry>
|
||||
<entry>#comment</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomDocument</entry>
|
||||
<entry>#document</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomDocumentType</entry>
|
||||
<entry>document type name</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomElement</entry>
|
||||
<entry>tag name</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomEntity</entry>
|
||||
<entry>name of entity</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomEntityReference</entry>
|
||||
<entry>name of entity reference</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomNotation</entry>
|
||||
<entry>notation name</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomProcessingInstruction</entry>
|
||||
<entry>target</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomText</entry>
|
||||
<entry>#text</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,26 +1,25 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
|
||||
<refentry id='function.domnode-node-type'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->node_type</refname>
|
||||
<refpurpose>
|
||||
Returns type of node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>int</type><methodname>DomNode->node_type</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns the type of the node. All possible types are listed in
|
||||
the table in the introduction.
|
||||
</para>
|
||||
<example>
|
||||
<title></title>
|
||||
<programlisting role="php">
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<refentry id='function.domnode-node-type'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->node_type</refname>
|
||||
<refpurpose>
|
||||
Returns type of node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>int</type><methodname>DomNode->node_type</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns the type of the node. All possible types are listed in
|
||||
the table in the introduction.
|
||||
</para>
|
||||
<example>
|
||||
<title></title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
|
@ -39,17 +38,17 @@ foreach($chapter->child_nodes() as $node) {
|
|||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
title
|
||||
para
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
</screen>
|
||||
</example>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,86 +1,85 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
|
||||
<refentry id='function.domnode-node-value'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->node_value</refname>
|
||||
<refpurpose>
|
||||
Returns value of a node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DomNode->node_value</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns value of the node. The value has different meanings
|
||||
for the different types of nodes as illustrated in the following table.
|
||||
<table>
|
||||
<title>Meaning of value</title>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>Type</entry>
|
||||
<entry>Meaning</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>DomAttribute</entry>
|
||||
<entry>value of attribute</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomAttribute</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomCDataSection</entry>
|
||||
<entry>content</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomComment</entry>
|
||||
<entry>content of comment</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomDocument</entry>
|
||||
<entry>null</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomDocumentType</entry>
|
||||
<entry>null</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomElement</entry>
|
||||
<entry>null</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomEntity</entry>
|
||||
<entry>null</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomEntityReference</entry>
|
||||
<entry>null</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomNotation</entry>
|
||||
<entry>null</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomProcessingInstruction</entry>
|
||||
<entry>entire content without target</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomText</entry>
|
||||
<entry>content of text</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<refentry id='function.domnode-node-value'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->node_value</refname>
|
||||
<refpurpose>
|
||||
Returns value of a node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DomNode->node_value</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns value of the node. The value has different meanings
|
||||
for the different types of nodes as illustrated in the following table.
|
||||
<table>
|
||||
<title>Meaning of value</title>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>Type</entry>
|
||||
<entry>Meaning</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>DomAttribute</entry>
|
||||
<entry>value of attribute</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomAttribute</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomCDataSection</entry>
|
||||
<entry>content</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomComment</entry>
|
||||
<entry>content of comment</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomDocument</entry>
|
||||
<entry>null</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomDocumentType</entry>
|
||||
<entry>null</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomElement</entry>
|
||||
<entry>null</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomEntity</entry>
|
||||
<entry>null</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomEntityReference</entry>
|
||||
<entry>null</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomNotation</entry>
|
||||
<entry>null</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomProcessingInstruction</entry>
|
||||
<entry>entire content without target</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomText</entry>
|
||||
<entry>content of text</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,27 +1,26 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
|
||||
<refentry id='function.domnode-owner-document'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->owner_document</refname>
|
||||
<refpurpose>
|
||||
Returns the document this node belongs to
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domdocument</type><methodname>DomNode->owner_document</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns the document the current node belongs to.
|
||||
</para>
|
||||
<para>
|
||||
The following example will create two identical lists of children.
|
||||
<example>
|
||||
<title>Finding the document of a node</title>
|
||||
<programlisting role="php">
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<refentry id='function.domnode-owner-document'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->owner_document</refname>
|
||||
<refpurpose>
|
||||
Returns the document this node belongs to
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domdocument</type><methodname>DomNode->owner_document</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns the document the current node belongs to.
|
||||
</para>
|
||||
<para>
|
||||
The following example will create two identical lists of children.
|
||||
<example>
|
||||
<title>Finding the document of a node</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$doc = domxml_new_doc("1.0");
|
||||
|
@ -35,14 +34,14 @@ $children = $doc2->children();
|
|||
print_r($children);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_insert_before</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_insert_before</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,30 +1,29 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
|
||||
<refentry id='function.domnode-parent-node'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->parent_node</refname>
|
||||
<refpurpose>
|
||||
Returns the parent of the node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domnode</type><methodname>DomNode->parent_node</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns the parent node.
|
||||
</para>
|
||||
<para>
|
||||
(PHP >= 4.3 only) If no parent is found, NULL is returned.
|
||||
</para>
|
||||
<para>
|
||||
The following example will show two identical lists of children.
|
||||
<example>
|
||||
<title>Finding the document of a node</title>
|
||||
<programlisting role="php">
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<refentry id='function.domnode-parent-node'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->parent_node</refname>
|
||||
<refpurpose>
|
||||
Returns the parent of the node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domnode</type><methodname>DomNode->parent_node</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns the parent node.
|
||||
</para>
|
||||
<para>
|
||||
(PHP >= 4.3 only) If no parent is found, NULL is returned.
|
||||
</para>
|
||||
<para>
|
||||
The following example will show two identical lists of children.
|
||||
<example>
|
||||
<title>Finding the document of a node</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$doc = domxml_new_doc("1.0");
|
||||
|
@ -38,11 +37,11 @@ $children = $doc2->children();
|
|||
print_r($children);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,24 +1,23 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.39 -->
|
||||
<refentry id='function.domnode-prefix'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->prefix</refname>
|
||||
<refpurpose>
|
||||
Returns name space prefix of node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DomNode->prefix</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns the name space prefix of the node.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<refentry id='function.domnode-prefix'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->prefix</refname>
|
||||
<refpurpose>
|
||||
Returns name space prefix of node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DomNode->prefix</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns the name space prefix of the node.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,30 +1,29 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
|
||||
<refentry id='function.domnode-previous-sibling'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->previous_sibling</refname>
|
||||
<refpurpose>
|
||||
Returns the previous sibling of node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domelement</type><methodname>DomNode->previous_sibling</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
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.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_next_sibling</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<refentry id='function.domnode-previous-sibling'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->previous_sibling</refname>
|
||||
<refpurpose>
|
||||
Returns the previous sibling of node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domelement</type><methodname>DomNode->previous_sibling</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
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.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_next_sibling</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,28 +1,27 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
|
||||
<refentry id='function.domnode-remove-child'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->remove_child</refname>
|
||||
<refpurpose>
|
||||
Removes child from list of children
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domtext</type><methodname>DomNode->remove_child</methodname>
|
||||
<methodparam><type>domtext</type><parameter>oldchild</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
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.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Removing a child</title>
|
||||
<programlisting role="php">
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<refentry id='function.domnode-remove-child'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->remove_child</refname>
|
||||
<refpurpose>
|
||||
Removes child from list of children
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domtext</type><methodname>DomNode->remove_child</methodname>
|
||||
<methodparam><type>domtext</type><parameter>oldchild</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
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.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Removing a child</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
include("example.inc");
|
||||
|
@ -43,14 +42,14 @@ echo htmlentities($xmlfile);
|
|||
echo "</PRE>";
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_append_child</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_append_child</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,39 +1,39 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<refentry id='function.domnode-replace-child'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->replace_child</refname>
|
||||
<refpurpose>
|
||||
Replaces a child
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domelement</type><methodname>DomNode->replace_child</methodname>
|
||||
<methodparam><type>domelement</type><parameter>oldnode</parameter></methodparam>
|
||||
<methodparam><type>domelement</type><parameter>newnode</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
(PHP 4.2) This function replaces the child <parameter>oldnode</parameter>
|
||||
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.
|
||||
</para>
|
||||
<para>
|
||||
(PHP 4.3) This function replaces the child <parameter>oldnode</parameter>
|
||||
with the passed <parameter>newnode</parameter>, even if the new node already
|
||||
is a child of the DomNode. If <parameter>newnode</parameter> 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).
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_append_child</function>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- $Revision: 1.10 $ -->
|
||||
<refentry id='function.domnode-replace-child'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->replace_child</refname>
|
||||
<refpurpose>
|
||||
Replaces a child
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domelement</type><methodname>DomNode->replace_child</methodname>
|
||||
<methodparam><type>domelement</type><parameter>oldnode</parameter></methodparam>
|
||||
<methodparam><type>domelement</type><parameter>newnode</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
(PHP 4.2) This function replaces the child <parameter>oldnode</parameter>
|
||||
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.
|
||||
</para>
|
||||
<para>
|
||||
(PHP 4.3) This function replaces the child <parameter>oldnode</parameter>
|
||||
with the passed <parameter>newnode</parameter>, even if the new node already
|
||||
is a child of the DomNode. If <parameter>newnode</parameter> 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).
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_append_child</function>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,41 +1,40 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.12 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.39 -->
|
||||
<refentry id='function.domnode-replace-node'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->replace_node</refname>
|
||||
<refpurpose>
|
||||
Replaces node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domelement</type><methodname>DomNode->replace_node</methodname>
|
||||
<methodparam><type>domelement</type><parameter>newnode</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
(PHP 4.2) This function replaces an existing node with the passed
|
||||
new node. Before the replacement
|
||||
<parameter>newnode</parameter> 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
|
||||
<function>domnode_first_child</function>,
|
||||
<function>domnode_child_nodes</function> etc..
|
||||
</para>
|
||||
<para>
|
||||
(PHP 4.3) This function replaces an existing node with the passed new node. It is not
|
||||
copied anymore. If <parameter>newnode</parameter> was already inserted in the document
|
||||
it is first unlinked from its existing context. If the replacement succeeds the old
|
||||
node is returned.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_append_child</function>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- $Revision: 1.13 $ -->
|
||||
<refentry id='function.domnode-replace-node'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->replace_node</refname>
|
||||
<refpurpose>
|
||||
Replaces node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domelement</type><methodname>DomNode->replace_node</methodname>
|
||||
<methodparam><type>domelement</type><parameter>newnode</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
(PHP 4.2) This function replaces an existing node with the passed
|
||||
new node. Before the replacement
|
||||
<parameter>newnode</parameter> 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
|
||||
<function>domnode_first_child</function>,
|
||||
<function>domnode_child_nodes</function> etc..
|
||||
</para>
|
||||
<para>
|
||||
(PHP 4.3) This function replaces an existing node with the passed new node. It is not
|
||||
copied anymore. If <parameter>newnode</parameter> was already inserted in the document
|
||||
it is first unlinked from its existing context. If the replacement succeeds the old
|
||||
node is returned.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_append_child</function>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,24 +1,23 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.39 -->
|
||||
<refentry id='function.domnode-set-content'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->set_content</refname>
|
||||
<refpurpose>
|
||||
Sets content of node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DomNode->set_content</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
&warn.undocumented.func;
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<refentry id='function.domnode-set-content'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->set_content</refname>
|
||||
<refpurpose>
|
||||
Sets content of node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DomNode->set_content</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
&warn.undocumented.func;
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,27 +1,26 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.39 -->
|
||||
<refentry id='function.domnode-set-name'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->set_name</refname>
|
||||
<refpurpose>
|
||||
Sets name of node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DomNode->set_name</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Sets name of node.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_node_name</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<refentry id='function.domnode-set-name'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->set_name</refname>
|
||||
<refpurpose>
|
||||
Sets name of node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DomNode->set_name</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Sets name of node.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_node_name</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,32 +1,31 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
|
||||
<refentry id='function.domnode-set-namespace'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->set_namespace</refname>
|
||||
<refpurpose>
|
||||
Sets namespace of a node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>DomNode->set_namespace</methodname>
|
||||
<methodparam><type>string</type><parameter>uri</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>string</type><parameter>prefix</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Sets the namespace of a node to <parameter>uri</parameter>.
|
||||
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 <parameter>prefix</parameter> or generate a random one.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domdocument_create_element_ns</function>, and
|
||||
<function>domnode_add_namespace</function>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<refentry id='function.domnode-set-namespace'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->set_namespace</refname>
|
||||
<refpurpose>
|
||||
Sets namespace of a node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>DomNode->set_namespace</methodname>
|
||||
<methodparam><type>string</type><parameter>uri</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>string</type><parameter>prefix</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Sets the namespace of a node to <parameter>uri</parameter>.
|
||||
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 <parameter>prefix</parameter> or generate a random one.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domdocument_create_element_ns</function>, and
|
||||
<function>domnode_add_namespace</function>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,24 +1,23 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.39 -->
|
||||
<refentry id='function.domnode-unlink-node'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->unlink_node</refname>
|
||||
<refpurpose>
|
||||
Deletes node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>DomNode->unlink_node</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
&warn.undocumented.func;
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<refentry id='function.domnode-unlink-node'>
|
||||
<refnamediv>
|
||||
<refname>DomNode->unlink_node</refname>
|
||||
<refpurpose>
|
||||
Deletes node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>DomNode->unlink_node</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
&warn.undocumented.func;
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
Loading…
Reference in a new issue