dams Thu Aug 12 14:24:58 2004 EDT
Modified files: /phpdoc/en/reference/dom/functions dom-import-simplexml.xml Log: Fixes http://cvs.php.net/diff.php/phpdoc/en/reference/dom/functions/dom-import-simplexml.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc/en/reference/dom/functions/dom-import-simplexml.xml diff -u phpdoc/en/reference/dom/functions/dom-import-simplexml.xml:1.1 phpdoc/en/reference/dom/functions/dom-import-simplexml.xml:1.2 --- phpdoc/en/reference/dom/functions/dom-import-simplexml.xml:1.1 Thu Aug 12 14:19:03 2004 +++ phpdoc/en/reference/dom/functions/dom-import-simplexml.xml Thu Aug 12 14:24:58 2004 @@ -1,10 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id='function.dom-import-simplexml'> <refnamediv> <refname>dom_import_SimpleXML</refname> <refpurpose> - Get a <classname>DOM</classname> object from a + Get a <classname>DOMElement</classname> object from a <classname>SimpleXMLElement</classname> object </refpurpose> </refnamediv> @@ -15,10 +15,11 @@ <methodparam><type>SimpleXMLElement</type><parameter>node</parameter></methodparam> </methodsynopsis> <para> - This function takes a node of a <link linkend="ref.simplexml">SimpleXML</link> - Object and makes it into a DOMElement node. This new object can - then be used as a native DOM node. If any errors occur, - it returns &false;. + This function takes the node <parameter>node</parameter> + of class <link linkend="ref.simplexml">SimpleXML</link> + and makes it into a <classname>DOMElement</classname> node. This new object can + then be used as a native <classname>DOMElement</classname> node. + If any errors occur, it returns &false;. </para> <example> <title>Import SimpleXML into DOM with <methodname>dom_import_simplexml</methodname></title> @@ -37,10 +38,7 @@ exit; } -var_dump($dom_sxe); - $dom = new domdocument("1.0"); -var_dump($dom); $dom_sxe = $dom->importnode($dom_sxe, true); $dom_sxe = $dom->appendchild($dom_sxe);