reference/simplexml/functions/simplexml-import-dom.xml
d715365c098db000eaf7dcd987ee6093f6e83091
...
...
@@ -1,16 +1,16 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-
<refentry xml:id='function.simplexml-import-dom' xmlns="http://docbook.org/ns/docbook">
3
+
<refentry xml:id="function.simplexml-import-dom" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>simplexml_import_dom</refname>
6
-
<refpurpose>Get a <literal>SimpleXMLElement</literal> object from a DOM node.</refpurpose>
6
+
<refpurpose>Get a <literal>SimpleXMLElement</literal> object from a DOM node</refpurpose>
7
7
</refnamediv>
8
8
<refsect1 role="description">
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
-
<type>SimpleXMLElement</type><methodname>simplexml_import_dom</methodname>
12
-
<methodparam><type>DOMNode</type><parameter>node</parameter></methodparam>
13
-
<methodparam choice="opt"><type>string</type><parameter>class_name</parameter><initializer>"SimpleXMLElement"</initializer></methodparam>
11
+
<type class="union"><type>SimpleXMLElement</type><type>null</type></type><methodname>simplexml_import_dom</methodname>
12
+
<methodparam><type>object</type><parameter>node</parameter></methodparam>
13
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>class_name</parameter><initializer>SimpleXMLElement::class</initializer></methodparam>
14
14
</methodsynopsis>
15
15
<para>
16
16
This function takes a node of a <link linkend="book.dom">DOM</link>
...
...
@@ -49,9 +49,8 @@
49
49
<refsect1 role="returnvalues">
50
50
&reftitle.returnvalues;
51
51
<para>
52
-
Returns a <type>SimpleXMLElement</type>&return.falseforfailure;.
52
+
Returns a <type>SimpleXMLElement</type> or &null; on failure.
53
53
</para>
54
-
&return.falseproblem;
55
54
</refsect1>
56
55

57
56
<refsect1 role="examples">
...
...
@@ -96,7 +95,6 @@ blah
96
95
</refsect1>
97
96

98
97
</refentry>
99
-

100
98
<!-- Keep this comment at the end of the file
101
99
Local variables:
102
100
mode: sgml
103
101