cvs: phpdoc-hu /reference/simplexml/functions simplexml-import-dom.xml

[email protected] ("Lajos Cseppent?")
Newsgroups php.doc.hu
Message-ID <cvschappy1170067193@cvsserver>
chappy		Mon Jan 29 10:39:53 2007 UTC

  Modified files:              
    /phpdoc-hu/reference/simplexml/functions	simplexml-import-dom.xml 
  Log:
  sync
  
http://cvs.php.net/viewvc.cgi/phpdoc-hu/reference/simplexml/functions/simplexml-import-dom.xml?r1=1.2&r2=1.3&diff_format=u
Index: phpdoc-hu/reference/simplexml/functions/simplexml-import-dom.xml
diff -u phpdoc-hu/reference/simplexml/functions/simplexml-import-dom.xml:1.2 phpdoc-hu/reference/simplexml/functions/simplexml-import-dom.xml:1.3
--- phpdoc-hu/reference/simplexml/functions/simplexml-import-dom.xml:1.2	Sat Jun 10 11:08:35 2006
+++ phpdoc-hu/reference/simplexml/functions/simplexml-import-dom.xml	Mon Jan 29 10:39:53 2007
@@ -1,36 +1,70 @@
 <?xml version="1.0" encoding="iso-8859-2"?>
-<!-- EN-Revision: 1.8 Maintainer: chappy Status: ready --> 
-  <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">
+<!-- EN-Revision: 1.11 Maintainer: chappy Status: ready --> 
+<refentry id='function.simplexml-import-dom'>
+ <refnamediv>
+  <refname>simplexml_import_dom</refname>
+  <refpurpose><literal>SimpleXMLElement</literal> objektumot készít DOM objektumból.</refpurpose>
+ </refnamediv>
+ <refsect1 role="description">
+  &reftitle.description;
+  <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>
+   Ez a függvény a <link linkend="ref.dom">DOM</link> objektumot SimpleXML 
+   objektummá konvertálja. Ezt az objektumot ezután sima SimpleXML objektumként 
+   használhatjuk. 
+  </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+  &reftitle.parameters;
+  <para>
+   <variablelist>
+    <varlistentry>
+     <term><parameter>node</parameter></term>
+     <listitem>
+      <para>
+       A <link linkend="ref.dom">DOM</link> Elem
+      </para>
+     </listitem>
+    </varlistentry>
+    <varlistentry>
+     <term><parameter>class_name</parameter></term>
+     <listitem>
+      <para>
+       Ezt a paramétert használva a 
+       <function>simplexml_load_file</function> egy megadott osztályú
+       objektumot ad vissza. Ennek az osztálynak a 
+       <type>SimpleXMLElement</type> osztálynak kell az utóda lennie.
+      </para>
+     </listitem>
+    </varlistentry>
+   </variablelist>
+  </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+   Egy <type>SimpleXMLElement</type> objektummal tér vissza vagy &false;-szal hiba esetén.
+  </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <para>
+   <example>
+    <title>DOM importálása</title>
+    <programlisting role="php">
 <![CDATA[
 <?php
-$dom = new domDocument;
+$dom = new DOMDocument;
 $dom->loadXML('<books><book><title>blah</title></book></books>');
 if (!$dom) {
-    echo 'Hiba a dokumentum értelmezése közben';
+    echo 'Error while parsing the document';
     exit;
 }
 
@@ -39,14 +73,21 @@
 echo $s->book[0]->title; // blah
 ?>
 ]]>
-     </programlisting>
-    </example>
-    <para>
-      Lásd még: 
-      <function>dom_import_simplexml</function>.
-    </para>
-   </refsect1>
-  </refentry>
+    </programlisting>
+   </example>
+  </para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+  &reftitle.seealso;
+  <para>
+   <simplelist>
+    <member><function>dom_import_simplexml</function></member>
+   </simplelist>
+  </para>
+ </refsect1>
+
+</refentry>
 
 <!-- Keep this comment at the end of the file
 Local variables:
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.