To copy the node attributes you need to enable deep copying

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@270639 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Hannes Magnusson 2008-12-05 22:11:45 +00:00
parent 04a678fef1
commit 888aa30a18

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.5 $ -->
<!-- $Revision: 1.6 $ -->
<refentry xml:id="domdocument.importnode" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>DOMDocument::importNode</refname>
@ -36,6 +36,11 @@
If set to &true;, this method will recursively import the subtree under
the <parameter>importedNode</parameter>.
</para>
<note>
<para>
To copy the nodes attributes <parameter>deep</parameter> needs to be set to &true;
</para>
</note>
</listitem>
</varlistentry>
</variablelist>