reference/simplexml/functions/simplexml-load-string.xml
d2939d46110158f98ace5c20761c808b04c905d8
...
...
@@ -1,6 +1,6 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-
<refentry xml:id='function.simplexml-load-string' xmlns="http://docbook.org/ns/docbook">
3
+
<refentry xml:id="function.simplexml-load-string" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>simplexml_load_string</refname>
6
6
<refpurpose>
...
...
@@ -10,12 +10,12 @@
10
10
<refsect1 role="description">
11
11
&reftitle.description;
12
12
<methodsynopsis>
13
-
<type>SimpleXMLElement</type><methodname>simplexml_load_string</methodname>
13
+
<type class="union"><type>SimpleXMLElement</type><type>false</type></type><methodname>simplexml_load_string</methodname>
14
14
<methodparam><type>string</type><parameter>data</parameter></methodparam>
15
-
<methodparam choice="opt"><type>string</type><parameter>class_name</parameter><initializer>"SimpleXMLElement"</initializer></methodparam>
15
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>class_name</parameter><initializer>SimpleXMLElement::class</initializer></methodparam>
16
16
<methodparam choice="opt"><type>int</type><parameter>options</parameter><initializer>0</initializer></methodparam>
17
-
<methodparam choice="opt"><type>string</type><parameter>ns</parameter><initializer>""</initializer></methodparam>
18
-
<methodparam choice="opt"><type>bool</type><parameter>is_prefix</parameter><initializer>false</initializer></methodparam>
17
+
<methodparam choice="opt"><type>string</type><parameter>namespace_or_prefix</parameter><initializer>""</initializer></methodparam>
18
+
<methodparam choice="opt"><type>bool</type><parameter>is_prefix</parameter><initializer>&false;</initializer></methodparam>
19
19
</methodsynopsis>
20
20
<para>
21
21
Takes a well-formed XML string and returns it as an object.
...
...
@@ -48,15 +48,11 @@
48
48
<varlistentry>
49
49
<term><parameter>options</parameter></term>
50
50
<listitem>
51
-
<para>
52
-
Since PHP 5.1.0 and Libxml 2.6.0, you may also use the
53
-
<parameter>options</parameter> parameter to specify <link
54
-
linkend="libxml.constants">additional Libxml parameters</link>.
55
-
</para>
51
+
&dom.parameter.options;
56
52
</listitem>
57
53
</varlistentry>
58
54
<varlistentry>
59
-
<term><parameter>ns</parameter></term>
55
+
<term><parameter>namespace_or_prefix</parameter></term>
60
56
<listitem>
61
57
<para>
62
58
Namespace prefix or URI.
...
...
@@ -67,7 +63,7 @@
67
63
<term><parameter>is_prefix</parameter></term>
68
64
<listitem>
69
65
<para>
70
-
&true; if <parameter>ns</parameter> is a prefix, &false; if it's a URI;
66
+
&true; if <parameter>namespace_or_prefix</parameter> is a prefix, &false; if it's a URI;
71
67
defaults to &false;.
72
68
</para>
73
69
</listitem>
...
...
@@ -140,7 +136,7 @@ SimpleXMLElement Object
140
136
]]>
141
137
</screen>
142
138
<simpara>
143
-
At this point, you can go about using <literal>$xml->body</literal>
139
+
At this point, you can go about using <literal>$xml-&gt;body</literal>
144
140
and such.
145
141
</simpara>
146
142
</example>
...
...
@@ -153,14 +149,13 @@ SimpleXMLElement Object
153
149
<simplelist>
154
150
<member><function>simplexml_load_file</function></member>
155
151
<member><methodname>SimpleXMLElement::__construct</methodname></member>
156
-
<member><xref linkend="simplexml.examples-errors" /></member>
152
+
<member><xref linkend="simplexml.examples-errors"/></member>
157
153
<member><function>libxml_use_internal_errors</function></member>
158
154
<member><xref linkend="simplexml.examples-basic"/></member>
159
155
</simplelist>
160
156
</para>
161
157
</refsect1>
162
158
</refentry>
163
-

164
159
<!-- Keep this comment at the end of the file
165
160
Local variables:
166
161
mode: sgml
167
162