reference/dom/domdocument/loadxml.xml
765749a26b620538117fff4425fafb3ed5834b54
...
...
@@ -9,8 +9,8 @@
9
9
</refnamediv>
10
10
<refsect1 role="description">
11
11
&reftitle.description;
12
-
<methodsynopsis>
13
-
<modifier>public</modifier> <type>mixed</type><methodname>DOMDocument::loadXML</methodname>
12
+
<methodsynopsis role="DOMDocument">
13
+
<modifier>public</modifier> <type>bool</type><methodname>DOMDocument::loadXML</methodname>
14
14
<methodparam><type>string</type><parameter>source</parameter></methodparam>
15
15
<methodparam choice="opt"><type>int</type><parameter>options</parameter><initializer>0</initializer></methodparam>
16
16
</methodsynopsis>
...
...
@@ -46,8 +46,7 @@
46
46
<refsect1 role="returnvalues">
47
47
&reftitle.returnvalues;
48
48
<para>
49
-
&return.success; If called statically, returns a
50
-
<classname>DOMDocument</classname>&return.falseforfailure;.
49
+
&return.success;
51
50
</para>
52
51
</refsect1>
53
52
<refsect1 role="errors">
...
...
@@ -57,8 +56,37 @@
57
56
a warning will be generated. This warning is not generated by libxml
58
57
and cannot be handled using libxml's error handling functions.
59
58
</para>
60
-
&dom.allowstatic;
61
59
</refsect1>
60
+
<refsect1 role="changelog">
61
+
&reftitle.changelog;
62
+
<informaltable>
63
+
<tgroup cols="2">
64
+
<thead>
65
+
<row>
66
+
<entry>&Version;</entry>
67
+
<entry>&Description;</entry>
68
+
</row>
69
+
</thead>
70
+
<tbody>
71
+
<row>
72
+
<entry>8.3.0</entry>
73
+
<entry>
74
+
This function now has a tentative <type>bool</type> return type.
75
+
</entry>
76
+
</row>
77
+
<row>
78
+
<entry>8.0.0</entry>
79
+
<entry>
80
+
Calling this function statically will
81
+
now throw an <classname>Error</classname>.
82
+
Previously, an <constant>E_DEPRECATED</constant> was raised.
83
+
</entry>
84
+
</row>
85
+
</tbody>
86
+
</tgroup>
87
+
</informaltable>
88
+
</refsect1>
89
+

62
90
<refsect1 role="examples">
63
91
&reftitle.examples;
64
92
<para>
...
...
@@ -75,20 +103,6 @@ echo $doc->saveXML();
75
103
</programlisting>
76
104
</example>
77
105
</para>
78
-
<para>
79
-
<example>
80
-
<title>Static invocation of <literal>loadXML</literal></title>
81
-
<programlisting role="php">
82
-
<![CDATA[
83
-
<?php
84
-
// Issues an E_STRICT error
85
-
$doc = DOMDocument::loadXML('<root><node/></root>');
86
-
echo $doc->saveXML();
87
-
?>
88
-
]]>
89
-
</programlisting>
90
-
</example>
91
-
</para>
92
106
</refsect1>
93
107
<refsect1 role="seealso">
94
108
&reftitle.seealso;
...
...
@@ -101,7 +115,6 @@ echo $doc->saveXML();
101
115
</para>
102
116
</refsect1>
103
117
</refentry>
104
-

105
118
<!-- Keep this comment at the end of the file
106
119
Local variables:
107
120
mode: sgml
108
121