reference/simplexml/simplexmlelement/addChild.xml
770c6facae667218f69c8ea2715ea20f6fab32f3
...
...
@@ -9,11 +9,11 @@
9
9
</refnamediv>
10
10
<refsect1 role="description">
11
11
&reftitle.description;
12
-
<methodsynopsis>
13
-
<modifier>public</modifier> <type>SimpleXMLElement</type><methodname>SimpleXMLElement::addChild</methodname>
14
-
<methodparam><type>string</type><parameter>name</parameter></methodparam>
15
-
<methodparam choice="opt"><type>string</type><parameter>value</parameter></methodparam>
16
-
<methodparam choice="opt"><type>string</type><parameter>namespace</parameter></methodparam>
12
+
<methodsynopsis role="SimpleXMLElement">
13
+
<modifier>public</modifier> <type class="union"><type>SimpleXMLElement</type><type>null</type></type><methodname>SimpleXMLElement::addChild</methodname>
14
+
<methodparam><type>string</type><parameter>qualifiedName</parameter></methodparam>
15
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>value</parameter><initializer>&null;</initializer></methodparam>
16
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>namespace</parameter><initializer>&null;</initializer></methodparam>
17
17
</methodsynopsis>
18
18
<para>
19
19
Adds a child element to the node and returns a SimpleXMLElement of the child.
...
...
@@ -25,7 +25,7 @@
25
25
<para>
26
26
<variablelist>
27
27
<varlistentry>
28
-
<term><parameter>name</parameter></term>
28
+
<term><parameter>qualifiedName</parameter></term>
29
29
<listitem>
30
30
<para>
31
31
The name of the child element to add.
...
...
@@ -56,7 +56,7 @@
56
56
&reftitle.returnvalues;
57
57
<para>
58
58
The <literal>addChild</literal> method returns a <type>SimpleXMLElement</type>
59
-
object representing the child added to the XML node.
59
+
object representing the child added to the XML node on success; &null; on failure.
60
60
</para>
61
61
</refsect1>
62
62

...
...
@@ -154,7 +154,6 @@ echo $sxe->asXML();
154
154
</para>
155
155
</refsect1>
156
156
</refentry>
157
-

158
157
<!-- Keep this comment at the end of the file
159
158
Local variables:
160
159
mode: sgml
161
160