Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 33 additions & 1 deletion reference/simplexml/functions/simplexml-import-dom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<refentry xml:id="function.simplexml-import-dom" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>simplexml_import_dom</refname>
<refpurpose>Get a <literal>SimpleXMLElement</literal> object from a DOM node</refpurpose>
<refpurpose>Get a <literal>SimpleXMLElement</literal> object from an XML or HTML node</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
Expand Down Expand Up @@ -53,6 +53,38 @@
</para>
</refsect1>

<refsect1 role="errors">
&reftitle.errors;
<simpara>
Throws a <classname>TypeError</classname> when passed a
non-XML or non-HTML <parameter>node</parameter>.
</simpara>
</refsect1>

<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>8.4.0</entry>
<entry>
This function now throws a <classname>TypeError</classname> instead of
a <classname>ValueError</classname> when passed a
non-XML or non-HTML <parameter>node</parameter>.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</refsect1>

<refsect1 role="examples">
&reftitle.examples;
<para>
Expand Down