cvs: phpdoc-hu /reference/simplexml/functions simplexml-import-dom.xml
| From: | Lajos Cseppent� | Date: | Fri, 09 Jun 2006 14:50:34 +0000 |
| Subject: | cvs: phpdoc-hu /reference/simplexml/functions simplexml-import-dom.xml | ||
| Groups: | php.doc.hu | ||
| Request: | Send a blank email to doc-hu+get-1414@lists.php.net to get a copy of this message | ||
chappy Fri Jun 9 14:50:34 2006 UTC
Added files:
/phpdoc-hu/reference/simplexml/functions simplexml-import-dom.xml
Log:
simplexml_import_dom()
http://cvs.php.net/viewcvs.cgi/phpdoc-hu/reference/simplexml/functions/simplexml-import-dom.xml?view=markup&rev=1.1
Index: phpdoc-hu/reference/simplexml/functions/simplexml-import-dom.xml
+++ phpdoc-hu/reference/simplexml/functions/simplexml-import-dom.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- $Revision: 1.1 $ -->
<refentry id='function.simplexml-import-dom'>
<refnamediv>
<refname>simplexml_import_dom</refname>
<refpurpose>
<literal>SimpleXMLElement</literal> objektumot ad vissza DOM objektumból.
</refpurpose>
</refnamediv>
<refsect1>
<title>Leírás</title>
<methodsynopsis>
<type>SimpleXMLElement</type><methodname>simplexml_import_dom</methodname>
<methodparam><type>DOMNode</type><parameter>node</parameter></methodparam>
<methodparam
choice="opt"><type>string</type><parameter>class_name</parameter></methodparam>
</methodsynopsis>
<para>
<!-- same with this link -->
Ez a függvény a <link linkend="ref.dom">DOM</link> objektumot és
SimpleXML
objektummá konvertálja. Ezt az objektumot ezután sima SimpleXML objektumként
is használhatjuk. Ha hiba lép fel, a visszatérési érték &false;.
</para>
<!-- php5 DOM isn't documented; this depends on it... :| -->
<!-- TODO: Document class_name and when it appeared. -->
<example>
<title>DOM importálása</title>
<programlisting role="php">
<![CDATA[
<?php
$dom = new domDocument;
$dom->loadXML('<books><book><title>blah</title></book></books>');
if (!$dom) {
echo 'Hiba a dokumentum értelmezése közben';
exit;
}
$s = simplexml_import_dom($dom);
echo $s->book[0]->title; // blah
?>
]]>
</programlisting>
</example>
<para>
Lásd még:
<function>dom_import_simplexml</function>.
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->