cvs: phpdoc-ja /reference/domxml/functions DomNode-append-child.xml DomNode-attributes.xml DomNode-child-nodes.xml DomNode-clone-node.xml
DomNode-dump-node.xml DomNode-first-child.xml DomNode-get-content.xml DomNode-has-attributes.xml DomNode-has-child-nodes.xml
| From: | Hideyuki Shimooka | Date: | Sun, 24 Jul 2005 09:18:10 +0000 |
| Subject: | cvs: phpdoc-ja /reference/domxml/functions DomNode-append-child.xml DomNode-attributes.xml DomNode-child-nodes.xml DomNode-clone-node.xml DomNode-dump-node.xml DomNode-first-child.xml DomNode-get-content.xml DomNode-has-attributes.xml DomNode-has-child-nodes.xml |
||
| Groups: | php.doc.ja | ||
| Request: | Send a blank email to doc-ja+get-1072@lists.php.net to get a copy of this message | ||
shimooka Sun Jul 24 05:18:10 2005 EDT
Modified files:
/phpdoc-ja/reference/domxml/functions DomNode-append-child.xml
DomNode-attributes.xml
DomNode-child-nodes.xml
DomNode-clone-node.xml
DomNode-dump-node.xml
DomNode-first-child.xml
DomNode-get-content.xml
DomNode-has-attributes.xml
DomNode-has-child-nodes.xml
Log:
translation updated
http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomNode-append-child.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomNode-append-child.xml diff -u phpdoc-ja/reference/domxml/functions/DomNode-append-child.xml:1.3 phpdoc-ja/reference/domxml/functions/DomNode-append-child.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomNode-append-child.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomNode-append-child.xml Sun Jul 24 05:18:09 2005 @@ -1,41 +1,125 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.40 Maintainer: hirokawa Status: ready --> - <refentry id='function.DomNode-append-child'> - <refnamediv> - <refname>DomNode->append_child</refname> - <refpurpose> - åãã¼ãã®æå¾ã«æ°è¦ã«åãã¼ãã追å ãã - </refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>object</type><methodname>DomNode->append_child</methodname> - <methodparam><type>object</type><parameter>newnode</parameter></methodparam> - </methodsynopsis> - <para> - This functions appends a child to an existing list of children or creates - a new list of children. The child can be created with e.g. - <function>DomDocument_create_element</function>, - <function>DomDocument_create_text</function> etc. or simply by using any - other node. - </para> - <para> - Before a new child is appended it is first duplicated. Therefore the new - child is a completely new copy which can be modified without changing the - node which was passed to this function. If the node passed has children - itself, they will be duplicated as well, which makes it quite easy to - duplicate large parts of a xml document. The return value is the - appended child. If you plan to do further modifications on the appended - child you must use the returned node. - </para> - <para> - The following example will add a new element node to a fresh document - and sets the attribute "align" to "left". - <example> - <title>Adding a child</title> - <programlisting role="php"> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.14 Maintainer: shimooka Status: ready --> +<!-- CREDITS: hirokawa --> +<refentry id='function.domnode-append-child'> + <refnamediv> + <refname>DomNode->append_child</refname> + <refpurpose> + åãã¼ãã®æå¾ã«æ°è¦ã«åãã¼ãã追å ãã + </refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <classsynopsis> + <ooclass><classname>DOMNode</classname></ooclass> + <methodsynopsis> + <type>DOMNode</type><methodname>append_child</methodname> + <methodparam><type>DOMNode</type><parameter>newnode</parameter></methodparam> + </methodsynopsis> + </classsynopsis> + <para> + ãã®é¢æ°ã¯æ¢åã®åãã¼ãã«åãã¼ãã追å ããã + ãããã¯æ°è¦åãã¼ãã使ãã¾ãã + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>newnode</parameter></term> + <listitem> + <para> + 追å ãããã¼ããããã«ã¯ãä¾ãã° + <xref linkend="function.domdocument-create-element" />, + <xref linkend="function.domdocument-create-text-node" /> + ãªã©ããããã¯åç´ã«ããããä»ã®ãã¼ãã«ãã£ã¦ä½æããããã¼ãã + æå®ãããã¨ãå¯è½ã§ãã + </para> + <note> + <para> + ãã®ã¡ã½ããã使ç¨ã㦠<classname>DOMAttribute</classname> + ã追å ãããã¨ã¯ã§ãã¾ããã代ããã« + <xref linkend="function.domelement-set-attribute" /> + ã使ç¨ãã¦ãã ããã + </para> + </note> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + æåæã¯è¿½å ããããã¼ãã失ææã¯ &false; ãè¿ãã¾ãã + </para> + </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>4.3.0</entry> + <entry> + ä»ã®æç« ããã®ãã¼ããæ¿å ¥ãããã¨ã¯ããã¯ã許å¯ããã¾ããã + </entry> + </row> + <row> + <entry>4.3.0</entry> + <entry> + PHP 4.3.0 以åã§ã¯ãæ°è¦åãã¼ãã¯è¿½å ããåã«è¤è£½ããã¾ãã + ãã®ãããæ°è¦åãã¼ãã¯å®å ¨ã«æ°ããã³ãã¼ã¨ãªãã¾ããããã¯ã + ãã®é¢æ°ã«æ¸¡ããããã¼ãã夿´ãããã¨ãªãã«ä¿®æ£ãããã¨ãå¯è½ã§ãã + 渡ããããã¼ããåãã¼ãèªèº«ã®å ´åãã¾ãã³ãã¼ããã¾ãã®ã§ã + XML æç« ã®å¤§ããªé¨ä½ãç°¡åã«ã³ãã¼ãããã¨ãã§ãã¾ãã + æ»ãå¤ã¯è¿½å ãããåãã¼ãã§ãã + ãã追å ãããåãã¼ãã夿´ããã¤ããã§ããã°ã + è¿ããããã¼ãã使ç¨ããå¿ è¦ãããã¾ãã + </entry> + </row> + <row> + <entry>4.3.0 㨠4.3.1</entry> + <entry> + æ°è¦åãã¼ã <parameter>newnode</parameter> ããã§ã« DomNode + ã®åãã¼ãã§ããå ´åãæåã«æ¢åã®ã³ã³ããã¹ãããåé¤ããã¾ãã + ãã®ããã<parameter>newnode</parameter> ã¯ç§»åããã + ã³ãã¼ããã¾ããããã®åä½ã¯ W3C è¦æ ¼ã«æºãããã®ã§ãã + ããå¤ãåä½ããããå¿ è¦ãããå ´åã追å ã§ã¯ãªã <xref + linkend="function.domnode-clone-node" /> ã使ç¨ãã¦ãã ããã + </entry> + </row> + <row> + <entry>4.3.2</entry> + <entry> + æ°è¦åãã¼ã <parameter>newnode</parameter> ããã§ã«ããªã¼ã«ããå ´åã + æåã«æ¢åã®ã³ã³ããã¹ãããåé¤ããã¾ããåãè¦åãé©ç¨ããã¾ãã + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + 以ä¸ã®ä¾ã¯æ°è¦ããã¥ã¡ã³ãã«æ°è¦è¦ç´ ãã¼ãã追å ãã + 屿§ <literal>align</literal> ã <literal>left</literal> ã«è¨å®ãã¾ãã + </para> + <para> + <example> + <title>åãã¼ãã追å ãã</title> + <programlisting role="php"> <![CDATA[ <?php $doc = domxml_new_doc("1.0"); @@ -44,12 +128,16 @@ $newnode->set_attribute("align", "left"); ?> ]]> - </programlisting> - </example> - The above example could also be written as the following: - <example> - <title>Adding a child</title> - <programlisting role="php"> + </programlisting> + </example> + </para> + <para> + ä¸è¨ã®ä¾ã¯ã以ä¸ã®ããã«ãæ¸ããã¨ãã§ãã¾ãã: + </para> + <para> + <example> + <title>åãã¼ãã追å ãã</title> + <programlisting role="php"> <![CDATA[ <?php $doc = domxml_new_doc("1.0"); @@ -58,20 +146,24 @@ $newnode = $doc->append_child($node); ?> ]]> - </programlisting> - </example> - A more comples example is the one below. It first searches for a certain - element, duplicates it including its children and adds it as a sibling. - Finally a new attribute is added to one of the children of the new - sibling and the whole document is dumped. - <example> - <title>Adding a child</title> - <programlisting role="php"> + </programlisting> + </example> + </para> + <para> + ããè¤éãªä¾ã¯ä»¥ä¸ã®éãã§ããæåã«ç¹å®ã®è¦ç´ ãæ¤ç´¢ãã + åãå«ããã¼ããè¤è£½ããå å¼ãã¼ãã¨ãã¦è¿½å ãã¾ãã + æå¾ã«æ°è¦å±æ§ãæ°è¦å å¼ãã¼ãè½å¤ãã¼ãã®ä¸ã¤ã«è¿½å ãã + æç« å ¨ä½ããã³ããã¾ãã + </para> + <para> + <example> + <title>åãã¼ãã追å ãã</title> + <programlisting role="php"> <![CDATA[ <?php include("example.inc"); -if(!$dom = domxml_open_mem($xmlstr)) { +if (!$dom = domxml_open_mem($xmlstr)) { echo "Error while parsing the document\n"; exit; } @@ -85,23 +177,37 @@ $children = $newnode->children(); $attr = $children[1]->set_attribute("align", "left"); -echo "<PRE>"; $xmlfile = $dom->dump_mem(); echo htmlentities($xmlfile); -echo "</PRE>"; ?> ]]> - </programlisting> - </example> - The above example could also be done with - <function>DomNode_insert_before</function> instead of - <function>DomNode_append_child</function>. - </para> - <para> - See also <function>DomNode_insert_before</function>. - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + <para> + ä¸è¨ã®ä¾ã¯ + <xref linkend="function.domnode-append-child" /> + ã®ä»£ããã« <xref linkend="function.domnode-insert-before" /> + ãç¨ãã¦ãåä½ãã¾ãã + </para> + </refsect1> + <refsect1 role="migration"> + <title>PHP 5 ã¸ã®ç§»è¡</title> + <para> + <xref linkend='function.dom-domnode-appendchild' /> + ã使ç¨ãã¦ãã ããã + </para> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><xref linkend="function.domnode-insert-before" /></member> + <member><xref linkend="function.domnode-clone-node" /></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomNode-attributes.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomNode-attributes.xml diff -u phpdoc-ja/reference/domxml/functions/DomNode-attributes.xml:1.3 phpdoc-ja/reference/domxml/functions/DomNode-attributes.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomNode-attributes.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomNode-attributes.xml Sun Jul 24 05:18:09 2005 @@ -1,25 +1,28 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.38 Maintainer: hirokawa Status: ready --> - <refentry id='function.DomNode-attributes'> - <refnamediv> - <refname>DomNode->attributes</refname> - <refpurpose> - 屿§ã®ãªã¹ããè¿ã - </refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>array</type><methodname>DomNode->attributes</methodname> - <void/> - </methodsynopsis> - <para> - This function only returns an array of attributes if the node is of - type XML_ELEMENT_NODE. - </para> - </refsect1> - </refentry> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.6 Maintainer: shimooka Status: ready --> +<!-- CREDITS: hirokawa --> +<refentry id='function.domnode-attributes'> + <refnamediv> + <refname>DomNode->attributes</refname> + <refpurpose> + 屿§ã®ä¸è¦§ãè¿ã + </refpurpose> + </refnamediv> + <refsect1> + &reftitle.description; + <methodsynopsis> + <type>array</type><methodname>DomNode->attributes</methodname> + <void/> + </methodsynopsis> + <para> + ãã®é¢æ°ã¯ããã¼ãã XML_ELEMENT_NODE åã®å ´åã«å±æ§ã®é åãè¿ãã ãã§ãã + </para> + <para> + (PHP >= 4.3 ã®ã¿) 屿§ãåå¨ããªãå ´åãNULL ãè¿ããã¾ãã + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomNode-child-nodes.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomNode-child-nodes.xml diff -u phpdoc-ja/reference/domxml/functions/DomNode-child-nodes.xml:1.3 phpdoc-ja/reference/domxml/functions/DomNode-child-nodes.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomNode-child-nodes.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomNode-child-nodes.xml Sun Jul 24 05:18:09 2005 @@ -1,28 +1,30 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.38 Maintainer: hirokawa Status: ready --> - <refentry id='function.DomNode-child-nodes'> - <refnamediv> - <refname>DomNode->child-nodes</refname> - <refpurpose> - åãã¼ããè¿ã - </refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>array</type><methodname>DomNode->child_nodes</methodname> - <void/> - </methodsynopsis> - <para> - Returns all children of the node. - </para> - <para> - See also <function>DomNode_next_sibling</function>, - <function>DomNode_previous_sibling</function>. - </para> - </refsect1> - </refentry> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.8 Maintainer: shimooka Status: ready --> +<!-- CREDITS: hirokawa --> +<refentry id='function.domnode-child-nodes'> + <refnamediv> + <refname>DomNode->child_nodes</refname> + <refpurpose> + åãã¼ããè¿ã + </refpurpose> + </refnamediv> + <refsect1> + &reftitle.description; + <methodsynopsis> + <type>array</type><methodname>DomNode->child_nodes</methodname> + <void/> + </methodsynopsis> + <para> + å ¨ã¦ã®åãã¼ããè¿ãã¾ãã + </para> + <para> + <function>domnode_next_sibling</function>, + <function>domnode_previous_sibling</function> + ãåç §ãã ããã + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomNode-clone-node.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomNode-clone-node.xml diff -u phpdoc-ja/reference/domxml/functions/DomNode-clone-node.xml:1.3 phpdoc-ja/reference/domxml/functions/DomNode-clone-node.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomNode-clone-node.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomNode-clone-node.xml Sun Jul 24 05:18:09 2005 @@ -1,24 +1,25 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.39 Maintainer: hirokawa Status: ready --> - <refentry id='function.DomNode-clone-node'> - <refnamediv> - <refname>DomNode->clone_node</refname> - <refpurpose> - ãã¼ãã®è¤è£½ãä½ã - </refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>object</type><methodname>DomNode->clone_node</methodname> - <void/> - </methodsynopsis> - <para> - &warn.undocumented.func; - </para> - </refsect1> - </refentry> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.6 Maintainer: shimooka Status: ready --> +<!-- CREDITS: hirokawa --> +<refentry id='function.domnode-clone-node'> + <refnamediv> + <refname>DomNode->clone_node</refname> + <refpurpose> + ãã¼ããè¤è£½ãã + </refpurpose> + </refnamediv> + <refsect1> + &reftitle.description; + <methodsynopsis> + <type>domelement</type><methodname>DomNode->clone_node</methodname> + <void/> + </methodsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomNode-dump-node.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomNode-dump-node.xml diff -u phpdoc-ja/reference/domxml/functions/DomNode-dump-node.xml:1.3 phpdoc-ja/reference/domxml/functions/DomNode-dump-node.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomNode-dump-node.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomNode-dump-node.xml Sun Jul 24 05:18:09 2005 @@ -1,27 +1,29 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.6 --> -<!-- EN-Revision: 1.39 Maintainer: hirokawa Status: ready --> - <refentry id='function.DomNode-dump-node'> - <refnamediv> - <refname>DomNode->dump_node</refname> - <refpurpose> - ãã¼ããï¼ã¤ãã³ããã - </refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>string</type><methodname>DomNode->dump_node</methodname> - <void/> - </methodsynopsis> - <para> - &warn.undocumented.func; - </para> - <para> - See also <function>DomDocument_dump_mem</function>. - </para> - </refsect1> - </refentry> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.6 Maintainer: shimooka Status: partial --> +<!-- CREDITS: hirokawa --> +<refentry id='function.domnode-dump-node'> + <refnamediv> + <refname>DomNode->dump_node</refname> + <refpurpose> + åä¸ãã¼ãããã³ããã + </refpurpose> + </refnamediv> + <refsect1> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>DomNode->dump_node</methodname> + <void/> + </methodsynopsis> + <para> + &warn.undocumented.func; + </para> + <para> + <function>domdocument_dump_mem</function> + ãåç §ãã ããã + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomNode-first-child.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomNode-first-child.xml diff -u phpdoc-ja/reference/domxml/functions/DomNode-first-child.xml:1.3 phpdoc-ja/reference/domxml/functions/DomNode-first-child.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomNode-first-child.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomNode-first-child.xml Sun Jul 24 05:18:09 2005 @@ -1,29 +1,34 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.38 Maintainer: hirokawa Status: ready --> - <refentry id='function.DomNode-first-child'> - <refnamediv> - <refname>DomNode->first_child</refname> - <refpurpose> - æåã®åãã¼ããè¿ã - </refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>bool</type><methodname>DomNode->first_child</methodname> - <void/> - </methodsynopsis> - <para> - Returns the first child of the node. - </para> - <para> - See also <function>DomNode_last_child</function>, - <function>DomNode_next_sibling</function>, - <function>DomNode_previous_sibling</function>. - </para> - </refsect1> - </refentry> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.10 Maintainer: shimooka Status: ready --> +<!-- CREDITS: hirokawa --> +<refentry id='function.domnode-first-child'> + <refnamediv> + <refname>DomNode->first_child</refname> + <refpurpose> + æåã®åãã¼ããè¿ã + </refpurpose> + </refnamediv> + <refsect1> + &reftitle.description; + <methodsynopsis> + <type>domelement</type><methodname>DomNode->first_child</methodname> + <void/> + </methodsynopsis> + <para> + æåã®åãã¼ããè¿ãã¾ãã + </para> + <para> + (PHP >= 4.3 ã®ã¿) æåã®åãã¼ããåå¨ããªãå ´åãNULL ãè¿ããã¾ãã + </para> + <para> + <function>domnode_last_child</function>, + <function>domnode_next_sibling</function>, + <function>domnode_previous_sibling</function> + ãåç §ãã ããã + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomNode-get-content.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomNode-get-content.xml diff -u phpdoc-ja/reference/domxml/functions/DomNode-get-content.xml:1.3 phpdoc-ja/reference/domxml/functions/DomNode-get-content.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomNode-get-content.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomNode-get-content.xml Sun Jul 24 05:18:09 2005 @@ -1,24 +1,50 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.6 --> -<!-- EN-Revision: 1.39 Maintainer: hirokawa Status: ready --> - <refentry id='function.DomNode-get-content'> - <refnamediv> - <refname>DomNode->get_content</refname> - <refpurpose> - ãã¼ãã®ã³ã³ãã³ããåå¾ãã - </refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>string</type><methodname>DomNode->get_content</methodname> - <void/> - </methodsynopsis> - <para> - &warn.undocumented.func; - </para> - </refsect1> - </refentry> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.9 Maintainer: shimooka Status: ready --> +<!-- CREDITS: hirokawa --> +<refentry id='function.domnode-get-content'> + <refnamediv> + <refname>DomNode->get_content</refname> + <refpurpose> + ãã¼ãã®å 容ãåå¾ãã + </refpurpose> + </refnamediv> + <refsect1> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>DomNode->get_content</methodname> + <void/> + </methodsynopsis> + <para> + ãã®é¢æ°ã¯å®ãã¼ãã®å 容ãè¿ãã¾ãã + </para> + <para> + <example> + <title>å 容ãåå¾ãã</title> + <programlisting role="php"> +<![CDATA[ +<?php +if (!$dom = domxml_open_mem($xmlstr)) { + echo "Error while parsing the document\n"; + exit; +} + +$root = $dom->document_element(); + +$node_array = $root->get_elements_by_tagname("element"); + +for ($i = 0; $i<count($node_array); $i++) { + $node = $node_array[$i]; + echo "The element[$i] is: " . $node->get_content(); +} + +?> +]]> + </programlisting> + </example> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomNode-has-attributes.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomNode-has-attributes.xml diff -u phpdoc-ja/reference/domxml/functions/DomNode-has-attributes.xml:1.3 phpdoc-ja/reference/domxml/functions/DomNode-has-attributes.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomNode-has-attributes.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomNode-has-attributes.xml Sun Jul 24 05:18:09 2005 @@ -1,27 +1,29 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.38 Maintainer: hirokawa Status: ready --> - <refentry id='function.DomNode-has-attributes'> - <refnamediv> - <refname>DomNode->has_attributess</refname> - <refpurpose> - ãã¼ãã屿§ãæãã¦ãããã調ã¹ã - </refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>bool</type><methodname>DomNode->has_attributes</methodname> - <void/> - </methodsynopsis> - <para> - This function checks if the node has attributes. - </para> - <para> - See also <function>DomNode_has_child_nodes</function>. - </para> - </refsect1> - </refentry> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.7 Maintainer: shimooka Status: ready --> +<!-- CREDITS: hirokawa --> +<refentry id='function.domnode-has-attributes'> + <refnamediv> + <refname>DomNode->has_attributes</refname> + <refpurpose> + ãã¼ãã屿§ãæãã¦ãããã調ã¹ã + </refpurpose> + </refnamediv> + <refsect1> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>DomNode->has_attributes</methodname> + <void/> + </methodsynopsis> + <para> + ãã®é¢æ°ã¯ããã¼ãã屿§ãæãã¦ãããã調ã¹ã¾ãã + </para> + <para> + <function>domnode_has_child_nodes</function> + ãåç §ãã ããã + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomNode-has-child-nodes.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomNode-has-child-nodes.xml diff -u phpdoc-ja/reference/domxml/functions/DomNode-has-child-nodes.xml:1.3 phpdoc-ja/reference/domxml/functions/DomNode-has-child-nodes.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomNode-has-child-nodes.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomNode-has-child-nodes.xml Sun Jul 24 05:18:09 2005 @@ -1,27 +1,29 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.38 Maintainer: hirokawa Status: ready --> - <refentry id='function.DomNode-has-child-nodes'> - <refnamediv> - <refname>DomNode->has_child_nodes</refname> - <refpurpose> - ãã¼ããåãã¼ããæãã¦ãããã調ã¹ã - </refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>bool</type><methodname>DomNode->has_child_nodes</methodname> - <void/> - </methodsynopsis> - <para> - This function checks if the node has children. - </para> - <para> - See also <function>DomNode_child_nodes</function>. - </para> - </refsect1> - </refentry> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.6 Maintainer: shimooka Status: ready --> +<!-- CREDITS: hirokawa --> +<refentry id='function.domnode-has-child-nodes'> + <refnamediv> + <refname>DomNode->has_child_nodes</refname> + <refpurpose> + ãã¼ããåãã¼ããæãã¦ãããã調ã¹ã + </refpurpose> + </refnamediv> + <refsect1> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>DomNode->has_child_nodes</methodname> + <void/> + </methodsynopsis> + <para> + ãã®é¢æ°ã¯ããã¼ããåãã¼ããæãã¦ãããã調ã¹ã¾ãã + </para> + <para> + <function>domnode_child_nodes</function> + ãåç §ãã ããã + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables:
http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomNode-append-child.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomNode-append-child.xml diff -u phpdoc-ja/reference/domxml/functions/DomNode-append-child.xml:1.3 phpdoc-ja/reference/domxml/functions/DomNode-append-child.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomNode-append-child.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomNode-append-child.xml Sun Jul 24 05:18:09 2005 @@ -1,41 +1,125 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.40 Maintainer: hirokawa Status: ready --> - <refentry id='function.DomNode-append-child'> - <refnamediv> - <refname>DomNode->append_child</refname> - <refpurpose> - åãã¼ãã®æå¾ã«æ°è¦ã«åãã¼ãã追å ãã - </refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>object</type><methodname>DomNode->append_child</methodname> - <methodparam><type>object</type><parameter>newnode</parameter></methodparam> - </methodsynopsis> - <para> - This functions appends a child to an existing list of children or creates - a new list of children. The child can be created with e.g. - <function>DomDocument_create_element</function>, - <function>DomDocument_create_text</function> etc. or simply by using any - other node. - </para> - <para> - Before a new child is appended it is first duplicated. Therefore the new - child is a completely new copy which can be modified without changing the - node which was passed to this function. If the node passed has children - itself, they will be duplicated as well, which makes it quite easy to - duplicate large parts of a xml document. The return value is the - appended child. If you plan to do further modifications on the appended - child you must use the returned node. - </para> - <para> - The following example will add a new element node to a fresh document - and sets the attribute "align" to "left". - <example> - <title>Adding a child</title> - <programlisting role="php"> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.14 Maintainer: shimooka Status: ready --> +<!-- CREDITS: hirokawa --> +<refentry id='function.domnode-append-child'> + <refnamediv> + <refname>DomNode->append_child</refname> + <refpurpose> + åãã¼ãã®æå¾ã«æ°è¦ã«åãã¼ãã追å ãã + </refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <classsynopsis> + <ooclass><classname>DOMNode</classname></ooclass> + <methodsynopsis> + <type>DOMNode</type><methodname>append_child</methodname> + <methodparam><type>DOMNode</type><parameter>newnode</parameter></methodparam> + </methodsynopsis> + </classsynopsis> + <para> + ãã®é¢æ°ã¯æ¢åã®åãã¼ãã«åãã¼ãã追å ããã + ãããã¯æ°è¦åãã¼ãã使ãã¾ãã + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>newnode</parameter></term> + <listitem> + <para> + 追å ãããã¼ããããã«ã¯ãä¾ãã° + <xref linkend="function.domdocument-create-element" />, + <xref linkend="function.domdocument-create-text-node" /> + ãªã©ããããã¯åç´ã«ããããä»ã®ãã¼ãã«ãã£ã¦ä½æããããã¼ãã + æå®ãããã¨ãå¯è½ã§ãã + </para> + <note> + <para> + ãã®ã¡ã½ããã使ç¨ã㦠<classname>DOMAttribute</classname> + ã追å ãããã¨ã¯ã§ãã¾ããã代ããã« + <xref linkend="function.domelement-set-attribute" /> + ã使ç¨ãã¦ãã ããã + </para> + </note> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + æåæã¯è¿½å ããããã¼ãã失ææã¯ &false; ãè¿ãã¾ãã + </para> + </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>4.3.0</entry> + <entry> + ä»ã®æç« ããã®ãã¼ããæ¿å ¥ãããã¨ã¯ããã¯ã許å¯ããã¾ããã + </entry> + </row> + <row> + <entry>4.3.0</entry> + <entry> + PHP 4.3.0 以åã§ã¯ãæ°è¦åãã¼ãã¯è¿½å ããåã«è¤è£½ããã¾ãã + ãã®ãããæ°è¦åãã¼ãã¯å®å ¨ã«æ°ããã³ãã¼ã¨ãªãã¾ããããã¯ã + ãã®é¢æ°ã«æ¸¡ããããã¼ãã夿´ãããã¨ãªãã«ä¿®æ£ãããã¨ãå¯è½ã§ãã + 渡ããããã¼ããåãã¼ãèªèº«ã®å ´åãã¾ãã³ãã¼ããã¾ãã®ã§ã + XML æç« ã®å¤§ããªé¨ä½ãç°¡åã«ã³ãã¼ãããã¨ãã§ãã¾ãã + æ»ãå¤ã¯è¿½å ãããåãã¼ãã§ãã + ãã追å ãããåãã¼ãã夿´ããã¤ããã§ããã°ã + è¿ããããã¼ãã使ç¨ããå¿ è¦ãããã¾ãã + </entry> + </row> + <row> + <entry>4.3.0 㨠4.3.1</entry> + <entry> + æ°è¦åãã¼ã <parameter>newnode</parameter> ããã§ã« DomNode + ã®åãã¼ãã§ããå ´åãæåã«æ¢åã®ã³ã³ããã¹ãããåé¤ããã¾ãã + ãã®ããã<parameter>newnode</parameter> ã¯ç§»åããã + ã³ãã¼ããã¾ããããã®åä½ã¯ W3C è¦æ ¼ã«æºãããã®ã§ãã + ããå¤ãåä½ããããå¿ è¦ãããå ´åã追å ã§ã¯ãªã <xref + linkend="function.domnode-clone-node" /> ã使ç¨ãã¦ãã ããã + </entry> + </row> + <row> + <entry>4.3.2</entry> + <entry> + æ°è¦åãã¼ã <parameter>newnode</parameter> ããã§ã«ããªã¼ã«ããå ´åã + æåã«æ¢åã®ã³ã³ããã¹ãããåé¤ããã¾ããåãè¦åãé©ç¨ããã¾ãã + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + 以ä¸ã®ä¾ã¯æ°è¦ããã¥ã¡ã³ãã«æ°è¦è¦ç´ ãã¼ãã追å ãã + 屿§ <literal>align</literal> ã <literal>left</literal> ã«è¨å®ãã¾ãã + </para> + <para> + <example> + <title>åãã¼ãã追å ãã</title> + <programlisting role="php"> <![CDATA[ <?php $doc = domxml_new_doc("1.0"); @@ -44,12 +128,16 @@ $newnode->set_attribute("align", "left"); ?> ]]> - </programlisting> - </example> - The above example could also be written as the following: - <example> - <title>Adding a child</title> - <programlisting role="php"> + </programlisting> + </example> + </para> + <para> + ä¸è¨ã®ä¾ã¯ã以ä¸ã®ããã«ãæ¸ããã¨ãã§ãã¾ãã: + </para> + <para> + <example> + <title>åãã¼ãã追å ãã</title> + <programlisting role="php"> <![CDATA[ <?php $doc = domxml_new_doc("1.0"); @@ -58,20 +146,24 @@ $newnode = $doc->append_child($node); ?> ]]> - </programlisting> - </example> - A more comples example is the one below. It first searches for a certain - element, duplicates it including its children and adds it as a sibling. - Finally a new attribute is added to one of the children of the new - sibling and the whole document is dumped. - <example> - <title>Adding a child</title> - <programlisting role="php"> + </programlisting> + </example> + </para> + <para> + ããè¤éãªä¾ã¯ä»¥ä¸ã®éãã§ããæåã«ç¹å®ã®è¦ç´ ãæ¤ç´¢ãã + åãå«ããã¼ããè¤è£½ããå å¼ãã¼ãã¨ãã¦è¿½å ãã¾ãã + æå¾ã«æ°è¦å±æ§ãæ°è¦å å¼ãã¼ãè½å¤ãã¼ãã®ä¸ã¤ã«è¿½å ãã + æç« å ¨ä½ããã³ããã¾ãã + </para> + <para> + <example> + <title>åãã¼ãã追å ãã</title> + <programlisting role="php"> <![CDATA[ <?php include("example.inc"); -if(!$dom = domxml_open_mem($xmlstr)) { +if (!$dom = domxml_open_mem($xmlstr)) { echo "Error while parsing the document\n"; exit; } @@ -85,23 +177,37 @@ $children = $newnode->children(); $attr = $children[1]->set_attribute("align", "left"); -echo "<PRE>"; $xmlfile = $dom->dump_mem(); echo htmlentities($xmlfile); -echo "</PRE>"; ?> ]]> - </programlisting> - </example> - The above example could also be done with - <function>DomNode_insert_before</function> instead of - <function>DomNode_append_child</function>. - </para> - <para> - See also <function>DomNode_insert_before</function>. - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + <para> + ä¸è¨ã®ä¾ã¯ + <xref linkend="function.domnode-append-child" /> + ã®ä»£ããã« <xref linkend="function.domnode-insert-before" /> + ãç¨ãã¦ãåä½ãã¾ãã + </para> + </refsect1> + <refsect1 role="migration"> + <title>PHP 5 ã¸ã®ç§»è¡</title> + <para> + <xref linkend='function.dom-domnode-appendchild' /> + ã使ç¨ãã¦ãã ããã + </para> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><xref linkend="function.domnode-insert-before" /></member> + <member><xref linkend="function.domnode-clone-node" /></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomNode-attributes.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomNode-attributes.xml diff -u phpdoc-ja/reference/domxml/functions/DomNode-attributes.xml:1.3 phpdoc-ja/reference/domxml/functions/DomNode-attributes.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomNode-attributes.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomNode-attributes.xml Sun Jul 24 05:18:09 2005 @@ -1,25 +1,28 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.38 Maintainer: hirokawa Status: ready --> - <refentry id='function.DomNode-attributes'> - <refnamediv> - <refname>DomNode->attributes</refname> - <refpurpose> - 屿§ã®ãªã¹ããè¿ã - </refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>array</type><methodname>DomNode->attributes</methodname> - <void/> - </methodsynopsis> - <para> - This function only returns an array of attributes if the node is of - type XML_ELEMENT_NODE. - </para> - </refsect1> - </refentry> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.6 Maintainer: shimooka Status: ready --> +<!-- CREDITS: hirokawa --> +<refentry id='function.domnode-attributes'> + <refnamediv> + <refname>DomNode->attributes</refname> + <refpurpose> + 屿§ã®ä¸è¦§ãè¿ã + </refpurpose> + </refnamediv> + <refsect1> + &reftitle.description; + <methodsynopsis> + <type>array</type><methodname>DomNode->attributes</methodname> + <void/> + </methodsynopsis> + <para> + ãã®é¢æ°ã¯ããã¼ãã XML_ELEMENT_NODE åã®å ´åã«å±æ§ã®é åãè¿ãã ãã§ãã + </para> + <para> + (PHP >= 4.3 ã®ã¿) 屿§ãåå¨ããªãå ´åãNULL ãè¿ããã¾ãã + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomNode-child-nodes.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomNode-child-nodes.xml diff -u phpdoc-ja/reference/domxml/functions/DomNode-child-nodes.xml:1.3 phpdoc-ja/reference/domxml/functions/DomNode-child-nodes.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomNode-child-nodes.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomNode-child-nodes.xml Sun Jul 24 05:18:09 2005 @@ -1,28 +1,30 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.38 Maintainer: hirokawa Status: ready --> - <refentry id='function.DomNode-child-nodes'> - <refnamediv> - <refname>DomNode->child-nodes</refname> - <refpurpose> - åãã¼ããè¿ã - </refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>array</type><methodname>DomNode->child_nodes</methodname> - <void/> - </methodsynopsis> - <para> - Returns all children of the node. - </para> - <para> - See also <function>DomNode_next_sibling</function>, - <function>DomNode_previous_sibling</function>. - </para> - </refsect1> - </refentry> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.8 Maintainer: shimooka Status: ready --> +<!-- CREDITS: hirokawa --> +<refentry id='function.domnode-child-nodes'> + <refnamediv> + <refname>DomNode->child_nodes</refname> + <refpurpose> + åãã¼ããè¿ã + </refpurpose> + </refnamediv> + <refsect1> + &reftitle.description; + <methodsynopsis> + <type>array</type><methodname>DomNode->child_nodes</methodname> + <void/> + </methodsynopsis> + <para> + å ¨ã¦ã®åãã¼ããè¿ãã¾ãã + </para> + <para> + <function>domnode_next_sibling</function>, + <function>domnode_previous_sibling</function> + ãåç §ãã ããã + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomNode-clone-node.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomNode-clone-node.xml diff -u phpdoc-ja/reference/domxml/functions/DomNode-clone-node.xml:1.3 phpdoc-ja/reference/domxml/functions/DomNode-clone-node.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomNode-clone-node.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomNode-clone-node.xml Sun Jul 24 05:18:09 2005 @@ -1,24 +1,25 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.39 Maintainer: hirokawa Status: ready --> - <refentry id='function.DomNode-clone-node'> - <refnamediv> - <refname>DomNode->clone_node</refname> - <refpurpose> - ãã¼ãã®è¤è£½ãä½ã - </refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>object</type><methodname>DomNode->clone_node</methodname> - <void/> - </methodsynopsis> - <para> - &warn.undocumented.func; - </para> - </refsect1> - </refentry> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.6 Maintainer: shimooka Status: ready --> +<!-- CREDITS: hirokawa --> +<refentry id='function.domnode-clone-node'> + <refnamediv> + <refname>DomNode->clone_node</refname> + <refpurpose> + ãã¼ããè¤è£½ãã + </refpurpose> + </refnamediv> + <refsect1> + &reftitle.description; + <methodsynopsis> + <type>domelement</type><methodname>DomNode->clone_node</methodname> + <void/> + </methodsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomNode-dump-node.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomNode-dump-node.xml diff -u phpdoc-ja/reference/domxml/functions/DomNode-dump-node.xml:1.3 phpdoc-ja/reference/domxml/functions/DomNode-dump-node.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomNode-dump-node.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomNode-dump-node.xml Sun Jul 24 05:18:09 2005 @@ -1,27 +1,29 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.6 --> -<!-- EN-Revision: 1.39 Maintainer: hirokawa Status: ready --> - <refentry id='function.DomNode-dump-node'> - <refnamediv> - <refname>DomNode->dump_node</refname> - <refpurpose> - ãã¼ããï¼ã¤ãã³ããã - </refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>string</type><methodname>DomNode->dump_node</methodname> - <void/> - </methodsynopsis> - <para> - &warn.undocumented.func; - </para> - <para> - See also <function>DomDocument_dump_mem</function>. - </para> - </refsect1> - </refentry> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.6 Maintainer: shimooka Status: partial --> +<!-- CREDITS: hirokawa --> +<refentry id='function.domnode-dump-node'> + <refnamediv> + <refname>DomNode->dump_node</refname> + <refpurpose> + åä¸ãã¼ãããã³ããã + </refpurpose> + </refnamediv> + <refsect1> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>DomNode->dump_node</methodname> + <void/> + </methodsynopsis> + <para> + &warn.undocumented.func; + </para> + <para> + <function>domdocument_dump_mem</function> + ãåç §ãã ããã + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomNode-first-child.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomNode-first-child.xml diff -u phpdoc-ja/reference/domxml/functions/DomNode-first-child.xml:1.3 phpdoc-ja/reference/domxml/functions/DomNode-first-child.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomNode-first-child.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomNode-first-child.xml Sun Jul 24 05:18:09 2005 @@ -1,29 +1,34 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.38 Maintainer: hirokawa Status: ready --> - <refentry id='function.DomNode-first-child'> - <refnamediv> - <refname>DomNode->first_child</refname> - <refpurpose> - æåã®åãã¼ããè¿ã - </refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>bool</type><methodname>DomNode->first_child</methodname> - <void/> - </methodsynopsis> - <para> - Returns the first child of the node. - </para> - <para> - See also <function>DomNode_last_child</function>, - <function>DomNode_next_sibling</function>, - <function>DomNode_previous_sibling</function>. - </para> - </refsect1> - </refentry> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.10 Maintainer: shimooka Status: ready --> +<!-- CREDITS: hirokawa --> +<refentry id='function.domnode-first-child'> + <refnamediv> + <refname>DomNode->first_child</refname> + <refpurpose> + æåã®åãã¼ããè¿ã + </refpurpose> + </refnamediv> + <refsect1> + &reftitle.description; + <methodsynopsis> + <type>domelement</type><methodname>DomNode->first_child</methodname> + <void/> + </methodsynopsis> + <para> + æåã®åãã¼ããè¿ãã¾ãã + </para> + <para> + (PHP >= 4.3 ã®ã¿) æåã®åãã¼ããåå¨ããªãå ´åãNULL ãè¿ããã¾ãã + </para> + <para> + <function>domnode_last_child</function>, + <function>domnode_next_sibling</function>, + <function>domnode_previous_sibling</function> + ãåç §ãã ããã + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomNode-get-content.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomNode-get-content.xml diff -u phpdoc-ja/reference/domxml/functions/DomNode-get-content.xml:1.3 phpdoc-ja/reference/domxml/functions/DomNode-get-content.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomNode-get-content.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomNode-get-content.xml Sun Jul 24 05:18:09 2005 @@ -1,24 +1,50 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.6 --> -<!-- EN-Revision: 1.39 Maintainer: hirokawa Status: ready --> - <refentry id='function.DomNode-get-content'> - <refnamediv> - <refname>DomNode->get_content</refname> - <refpurpose> - ãã¼ãã®ã³ã³ãã³ããåå¾ãã - </refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>string</type><methodname>DomNode->get_content</methodname> - <void/> - </methodsynopsis> - <para> - &warn.undocumented.func; - </para> - </refsect1> - </refentry> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.9 Maintainer: shimooka Status: ready --> +<!-- CREDITS: hirokawa --> +<refentry id='function.domnode-get-content'> + <refnamediv> + <refname>DomNode->get_content</refname> + <refpurpose> + ãã¼ãã®å 容ãåå¾ãã + </refpurpose> + </refnamediv> + <refsect1> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>DomNode->get_content</methodname> + <void/> + </methodsynopsis> + <para> + ãã®é¢æ°ã¯å®ãã¼ãã®å 容ãè¿ãã¾ãã + </para> + <para> + <example> + <title>å 容ãåå¾ãã</title> + <programlisting role="php"> +<![CDATA[ +<?php +if (!$dom = domxml_open_mem($xmlstr)) { + echo "Error while parsing the document\n"; + exit; +} + +$root = $dom->document_element(); + +$node_array = $root->get_elements_by_tagname("element"); + +for ($i = 0; $i<count($node_array); $i++) { + $node = $node_array[$i]; + echo "The element[$i] is: " . $node->get_content(); +} + +?> +]]> + </programlisting> + </example> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomNode-has-attributes.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomNode-has-attributes.xml diff -u phpdoc-ja/reference/domxml/functions/DomNode-has-attributes.xml:1.3 phpdoc-ja/reference/domxml/functions/DomNode-has-attributes.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomNode-has-attributes.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomNode-has-attributes.xml Sun Jul 24 05:18:09 2005 @@ -1,27 +1,29 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.38 Maintainer: hirokawa Status: ready --> - <refentry id='function.DomNode-has-attributes'> - <refnamediv> - <refname>DomNode->has_attributess</refname> - <refpurpose> - ãã¼ãã屿§ãæãã¦ãããã調ã¹ã - </refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>bool</type><methodname>DomNode->has_attributes</methodname> - <void/> - </methodsynopsis> - <para> - This function checks if the node has attributes. - </para> - <para> - See also <function>DomNode_has_child_nodes</function>. - </para> - </refsect1> - </refentry> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.7 Maintainer: shimooka Status: ready --> +<!-- CREDITS: hirokawa --> +<refentry id='function.domnode-has-attributes'> + <refnamediv> + <refname>DomNode->has_attributes</refname> + <refpurpose> + ãã¼ãã屿§ãæãã¦ãããã調ã¹ã + </refpurpose> + </refnamediv> + <refsect1> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>DomNode->has_attributes</methodname> + <void/> + </methodsynopsis> + <para> + ãã®é¢æ°ã¯ããã¼ãã屿§ãæãã¦ãããã調ã¹ã¾ãã + </para> + <para> + <function>domnode_has_child_nodes</function> + ãåç §ãã ããã + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomNode-has-child-nodes.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomNode-has-child-nodes.xml diff -u phpdoc-ja/reference/domxml/functions/DomNode-has-child-nodes.xml:1.3 phpdoc-ja/reference/domxml/functions/DomNode-has-child-nodes.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomNode-has-child-nodes.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomNode-has-child-nodes.xml Sun Jul 24 05:18:09 2005 @@ -1,27 +1,29 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.38 Maintainer: hirokawa Status: ready --> - <refentry id='function.DomNode-has-child-nodes'> - <refnamediv> - <refname>DomNode->has_child_nodes</refname> - <refpurpose> - ãã¼ããåãã¼ããæãã¦ãããã調ã¹ã - </refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>bool</type><methodname>DomNode->has_child_nodes</methodname> - <void/> - </methodsynopsis> - <para> - This function checks if the node has children. - </para> - <para> - See also <function>DomNode_child_nodes</function>. - </para> - </refsect1> - </refentry> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.6 Maintainer: shimooka Status: ready --> +<!-- CREDITS: hirokawa --> +<refentry id='function.domnode-has-child-nodes'> + <refnamediv> + <refname>DomNode->has_child_nodes</refname> + <refpurpose> + ãã¼ããåãã¼ããæãã¦ãããã調ã¹ã + </refpurpose> + </refnamediv> + <refsect1> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>DomNode->has_child_nodes</methodname> + <void/> + </methodsynopsis> + <para> + ãã®é¢æ°ã¯ããã¼ããåãã¼ããæãã¦ãããã調ã¹ã¾ãã + </para> + <para> + <function>domnode_child_nodes</function> + ãåç §ãã ããã + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: