cvs: phpdoc-ja /reference/domxml/functions DomDocument-create-entity-reference.xml DomDocument-create-processing-instruction.xml
DomDocument-create-text-node.xml DomDocument-doctype.xml DomDocument-document-element.xml DomDocument-dump-mem.xml DomDocument-get-element-by-id.xml
DomDocument-get-elements-by-tagname.xml DomDocument-html-dump-mem.xml

From: Date: Sun, 24 Jul 2005 07:33:48 +0000
Subject: cvs: phpdoc-ja /reference/domxml/functions DomDocument-create-entity-reference.xml DomDocument-create-processing-instruction.xml
DomDocument-create-text-node.xml DomDocument-doctype.xml DomDocument-document-element.xml DomDocument-dump-mem.xml DomDocument-get-element-by-id.xml
DomDocument-get-elements-by-tagname.xml DomDocument-html-dump-mem.xml
Groups: php.doc.ja 
Request: Send a blank email to doc-ja+get-1066@lists.php.net to get a copy of this message
shimooka Sun Jul 24 03:33:48 2005 EDT Modified files: /phpdoc-ja/reference/domxml/functions DomDocument-create-entity-reference.xml DomDocument-create-processing-instruction.xml DomDocument-create-text-node.xml DomDocument-doctype.xml DomDocument-document-element.xml DomDocument-dump-mem.xml DomDocument-get-element-by-id.xml DomDocument-get-elements-by-tagname.xml DomDocument-html-dump-mem.xml Log: translation updated

http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomDocument-create-entity-reference.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomDocument-create-entity-reference.xml diff -u phpdoc-ja/reference/domxml/functions/DomDocument-create-entity-reference.xml:1.3 phpdoc-ja/reference/domxml/functions/DomDocument-create-entity-reference.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomDocument-create-entity-reference.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomDocument-create-entity-reference.xml Sun Jul 24 03:33:48 2005 @@ -1,37 +1,38 @@ <?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.DomDocument-create-entity-reference"> +<!-- $Revision: 1.4 $ --> +<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> +<!-- EN-Revision: 1.9 Maintainer: shimooka Status: ready --> +<!-- CREDITS: hirokawa --> + <refentry id="function.domdocument-create-entity-reference"> <refnamediv> <refname>DomDocument->create_entity_reference</refname> <refpurpose> + エンティティ参照を作成する </refpurpose> </refnamediv> <refsect1> - <title>説明</title> + &reftitle.description; <methodsynopsis> - <type>object</type><methodname>DomDocument->create_entity_reference</methodname> + <type>domentityreference</type><methodname>DomDocument->create_entity_reference</methodname> <methodparam><type>string</type><parameter>content</parameter></methodparam> </methodsynopsis> <para> - This function returns a new instance of class - <classname>DomEntityReference</classname>. The content of the entity - reference is the - value of the passed parameter. This node will not show up in the - document unless it is inserted with e.g. - <function>DomNode_append_child</function>. + この関数は <classname>DomEntityReference</classname> + クラスの新規インスタンスを返します。 + エンティティ参照の内容は渡されたパラメータの値です。&node.inserted; </para> <para> - The return value is false if an error occured. + エラーが発生した場合、戻り値は &false; です。 </para> <para> - See also <function>DomNode_append_child</function>, - <function>DomDocument_create_element</function>, - <function>DomDocument_create_text</function>, - <function>DomDocument_create_cdata_section</function>, - <function>DomDocument_create_processing_instruction</function>, - <function>DomDocument_create_attribute</function>, - <function>DomNode_insert_before</function>. + <function>domnode_append_child</function>, + <function>domdocument_create_element</function>, + <function>domdocument_create_text</function>, + <function>domdocument_create_cdata_section</function>, + <function>domdocument_create_processing_instruction</function>, + <function>domdocument_create_attribute</function>, + <function>domnode_insert_before</function> + も参照ください。 </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomDocument-create-processing-instruction.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomDocument-create-processing-instruction.xml diff -u phpdoc-ja/reference/domxml/functions/DomDocument-create-processing-instruction.xml:1.3 phpdoc-ja/reference/domxml/functions/DomDocument-create-processing-instruction.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomDocument-create-processing-instruction.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomDocument-create-processing-instruction.xml Sun Jul 24 03:33:48 2005 @@ -1,37 +1,36 @@ <?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.DomDocument-create-processing-instruction"> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.9 Maintainer: shimooka Status: ready --> +<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> +<!-- CREDITS: hirokawa --> + <refentry id="function.domdocument-create-processing-instruction"> <refnamediv> <refname>DomDocument->create_processing_instruction</refname> - <refpurpose> - 新規PIノードを作成する - </refpurpose> + <refpurpose>新規 PI ノードを作成する</refpurpose> </refnamediv> <refsect1> - <title>説明</title> + &reftitle.description; <methodsynopsis> - <type>string</type><methodname>DomDocument->create_processing_instruction</methodname> + <type>domprocessinginstruction</type><methodname>DomDocument->create_processing_instruction</methodname> <methodparam><type>string</type><parameter>content</parameter></methodparam> </methodsynopsis> <para> - This function returns a new instance of class - <classname>DomCData</classname>. The content of the pi is the - value of the passed parameter. This node will not show up in the - document unless it is inserted with e.g. - <function>DomNode_append_child</function>. + この関数は <classname>DomCData</classname> + クラスの新規インスタンスを返します。 + PI の内容は渡されたパラメータの値です。&node.inserted; </para> <para> - The return value is false if an error occured. + エラーが発生した場合、戻り値は &false; です。 </para> <para> - See also <function>DomNode_append_child</function>, - <function>DomDocument_create_element</function>, - <function>DomDocument_create_text</function>, - <function>DomDocument_create_cdata_section</function>, - <function>DomDocument_create_attribute</function>, - <function>DomDocument_create_entity_reference</function>, - <function>DomNode_insert_before</function>. + <function>domnode_append_child</function>, + <function>domdocument_create_element</function>, + <function>domdocument_create_text</function>, + <function>domdocument_create_cdata_section</function>, + <function>domdocument_create_attribute</function>, + <function>domdocument_create_entity_reference</function>, + <function>domnode_insert_before</function> + も参照ください。 </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomDocument-create-text-node.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomDocument-create-text-node.xml diff -u phpdoc-ja/reference/domxml/functions/DomDocument-create-text-node.xml:1.3 phpdoc-ja/reference/domxml/functions/DomDocument-create-text-node.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomDocument-create-text-node.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomDocument-create-text-node.xml Sun Jul 24 03:33:48 2005 @@ -1,39 +1,37 @@ <?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.DomDocument-create-text-node"> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.8 Maintainer: shimooka Status: ready --> +<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> +<!-- CREDITS: hirokawa --> + <refentry id="function.domdocument-create-text-node"> <refnamediv> <refname>DomDocument->create_text_node</refname> - <refpurpose> - 新規テキストノードを作成する - </refpurpose> + <refpurpose>新規テキストノードを作成する</refpurpose> </refnamediv> <refsect1> - <title>説明</title> + &reftitle.description; <methodsynopsis> - <type>object</type><methodname>DomDocument->create_text_node</methodname> + <type>domtext</type><methodname>DomDocument->create_text_node</methodname> <methodparam><type>string</type><parameter>content</parameter></methodparam> </methodsynopsis> <para> - This function returns a new instance of class - <classname>DomText</classname>. The content of the text is the value of - the passed - parameter. This node will not show up in the - document unless it is inserted with e.g. - <function>DomNode_append_child</function>. + この関数は <classname>DomText</classname> + クラスの新規インスタンスを返します。 + テキストの内容は渡されたパラメータの値です。&node.inserted; </para> <para> - The return value is false if an error occured. + エラーが発生した場合、戻り値は &false; です。 </para> <para> - See also <function>DomNode_append_child</function>, - <function>DomDocument_create_element</function>, - <function>DomDocument_create_comment</function>, - <function>DomDocument_create_text</function>, - <function>DomDocument_create_attribute</function>, - <function>DomDocument_create_processing_instruction</function>, - <function>DomDocument_create_entity_reference</function>, - <function>DomNode_insert_before</function>. + <function>domnode_append_child</function>, + <function>domdocument_create_element</function>, + <function>domdocument_create_comment</function>, + <function>domdocument_create_text</function>, + <function>domdocument_create_attribute</function>, + <function>domdocument_create_processing_instruction</function>, + <function>domdocument_create_entity_reference</function>, + <function>domnode_insert_before</function> + も参照ください。 </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomDocument-doctype.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomDocument-doctype.xml diff -u phpdoc-ja/reference/domxml/functions/DomDocument-doctype.xml:1.3 phpdoc-ja/reference/domxml/functions/DomDocument-doctype.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomDocument-doctype.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomDocument-doctype.xml Sun Jul 24 03:33:48 2005 @@ -1,6 +1,7 @@ <?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 --> +<!-- EN-Revision: 1.5 Maintainer: shimooka Status: ready --> +<!-- CREDITS: hirokawa --> <refentry id="function.DomDocument-doctype"> <refnamediv> <refname>DomDocument->doctype</refname> @@ -9,20 +10,19 @@ </refpurpose> </refnamediv> <refsect1> - <title>説明</title> + &reftitle.description; <methodsynopsis> - <type>object</type><methodname>DomDocument->doctype</methodname> + <type>domdocumenttype</type><methodname>DomDocument->doctype</methodname> <void/> </methodsynopsis> <para> - この関数は、クラス<classname>DomDocumentType</classname>のオブジェ - クトを返します。4.3より前のバージョンのPHPでは、このオブジェクト - は、クラス<classname>Dtd</classname>でしたが、DOM標準にはそのよう - なクラスはありません。 + この関数は、クラス <classname>DomDocumentType</classname> + のオブジェクトを返します。4.3より前のバージョンのPHPでは、 + このオブジェクトは、クラス <classname>Dtd</classname> でしたが、 + DOM 標準にはそのようなクラスはありません。 </para> <para> - クラス<classname>DomDocumentType</classname>のメソッドも参照下さ - い。 + クラス<classname>DomDocumentType</classname>のメソッドも参照下さい。 </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomDocument-document-element.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomDocument-document-element.xml diff -u phpdoc-ja/reference/domxml/functions/DomDocument-document-element.xml:1.3 phpdoc-ja/reference/domxml/functions/DomDocument-document-element.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomDocument-document-element.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomDocument-document-element.xml Sun Jul 24 03:33:48 2005 @@ -1,33 +1,35 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> - <refentry id="function.DomDocument-document-element"> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.7 Maintainer: shimooka Status: ready --> +<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.6 --> +<!-- CREDITS: hirokawa --> + <refentry id="function.domdocument-document-element"> <refnamediv> <refname>DomDocument->document_element</refname> <refpurpose> - ルートエレメントノードを返す + ルート要素ノードを返す </refpurpose> </refnamediv> <refsect1> - <title>説明</title> + &reftitle.description; <methodsynopsis> - <type>object</type><methodname>DomDocument->document_element</methodname> + <type>domelement</type><methodname>DomDocument->document_element</methodname> <void/> </methodsynopsis> <para> - This function returns the root element node of a document. + この関数は文章のルート要素ノードを返します。 </para> <para> - The following example returns just the element with name CHAPTER and - prints it. The other node -- the comment -- is not returned. + 以下の例はただ CHAPTER という名前の要素を返し表示します。 + 他のノード -- コメント -- は返しません。 <example> - <title>Retrieving root element</title> + <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; } @@ -37,6 +39,18 @@ ?> ]]> </programlisting> + &example.outputs; + <screen> +<![CDATA[ +domelement Object +( + [type] => 1 + [tagname] => chapter + [0] => 6 + [1] => 137960648 +) +]]> + </screen> </example> </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomDocument-dump-mem.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomDocument-dump-mem.xml diff -u phpdoc-ja/reference/domxml/functions/DomDocument-dump-mem.xml:1.3 phpdoc-ja/reference/domxml/functions/DomDocument-dump-mem.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomDocument-dump-mem.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomDocument-dump-mem.xml Sun Jul 24 03:33:48 2005 @@ -1,30 +1,31 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> - <refentry id="function.DomDocument-dump-mem"> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.8 Maintainer: shimooka Status: ready --> +<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.6 --> +<!-- CREDITS: hirokawa --> + <refentry id="function.domdocument-dump-mem"> <refnamediv> <refname>DomDocument->dump_mem</refname> <refpurpose> - 内部XMLツリーを文字列にダンプする + 内部 XML ツリーを文字列にダンプする </refpurpose> </refnamediv> <refsect1> - <title>説明</title> + &reftitle.description; <methodsynopsis> <type>string</type><methodname>DomDocument->dump_mem</methodname> <methodparam choice="opt"><type>bool</type><parameter>format</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>encoding</parameter></methodparam> </methodsynopsis> - &warn.experimental.func; <para> - Creates an XML document from the dom representation. This function - usually is called after building a new dom document from scratch - as in the example below. The - <parameter>format</parameter> specifies whether the output should be - neatly formatted, or not. + DOM 表現から XML 文章を生成します。この関数は以下の例のように、 + 通常スクラッチから新規 DOM 文章を生成した後にコールされます。 + <parameter>format</parameter> により、 + きちんと整形するかどうかを指定します。 </para> <para> <example> - <title>Creating a simple HTML document header</title> + <title>簡単な HTML 文章のヘッダを生成する</title> <programlisting role="php"> <![CDATA[ <?php @@ -47,12 +48,13 @@ </para> <note> <para> - The first parameter was added in PHP 4.3.0. + 第 1 パラメータは PHP 4.3.0 で追加されました。 </para> </note> <para> - See also <function>DomDocument_dump_file</function>, - <function>DomDocument_html_dump_mem</function>. + <function>domdocument_dump_file</function>, + <function>domdocument_html_dump_mem</function> + も参照ください。 </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomDocument-get-element-by-id.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/domxml/functions/DomDocument-get-element-by-id.xml diff -u phpdoc-ja/reference/domxml/functions/DomDocument-get-element-by-id.xml:1.4 phpdoc-ja/reference/domxml/functions/DomDocument-get-element-by-id.xml:1.5 --- phpdoc-ja/reference/domxml/functions/DomDocument-get-element-by-id.xml:1.4 Sun Jan 2 02:23:30 2005 +++ phpdoc-ja/reference/domxml/functions/DomDocument-get-element-by-id.xml Sun Jul 24 03:33:48 2005 @@ -1,22 +1,33 @@ <?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.DomDocument-get-element-by-id"> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.7 Maintainer: shimooka Status: ready --> +<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> +<!-- CREDITS: hirokawa --> + <refentry id="function.domdocument-get-element-by-id"> <refnamediv> <refname>DomDocument->get_element_by_id</refname> <refpurpose> + 特定の ID を持つ要素を検索する </refpurpose> </refnamediv> <refsect1> - <title>説明</title> + &reftitle.description; <methodsynopsis> - <type>object</type><methodname>DomDocument->get_element_by_id</methodname> + <type>domelement</type><methodname>DomDocument->get_element_by_id</methodname> <methodparam><type>string</type><parameter>id</parameter></methodparam> </methodsynopsis> <para> + この関数は <function>domdocument_get_elements_by_tagname</function> + と似ていますが、与えられた ID を持つ要素を検索します。 + DOM 標準によれば、これには属性 ID を ID 型として定義する DTD + が必要になりますが、現在の実装は単純に "//*[@ID = '%s']" に対する + xpath 検索を行っています。これは属性が ID 型でない場合に NULL + を返す必要がある DOM 標準に準拠していません。 + この動作は固定されているようですので、現在の動作を当てにしないでください。 </para> <para> - <function>DomDocument_add_root</function>も参照ください。 + <function>domdocument_get_elements_by_tagname</function> + も参照ください。 </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomDocument-get-elements-by-tagname.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/domxml/functions/DomDocument-get-elements-by-tagname.xml diff -u phpdoc-ja/reference/domxml/functions/DomDocument-get-elements-by-tagname.xml:1.4 phpdoc-ja/reference/domxml/functions/DomDocument-get-elements-by-tagname.xml:1.5 --- phpdoc-ja/reference/domxml/functions/DomDocument-get-elements-by-tagname.xml:1.4 Sun Jan 2 02:23:30 2005 +++ phpdoc-ja/reference/domxml/functions/DomDocument-get-elements-by-tagname.xml Sun Jul 24 03:33:48 2005 @@ -1,14 +1,18 @@ <?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.DomDocument-get-elements-by-tagname"> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.6 Maintainer: shimooka Status: ready --> +<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> +<!-- CREDITS: hirokawa --> + <refentry id="function.domdocument-get-elements-by-tagname"> <refnamediv> <refname>DomDocument->get_elements_by_tagname</refname> <refpurpose> + 文章中に与えられたタグ名を持つノードの配列を返す。 + もしくは、見つからない場合は空の配列を返す </refpurpose> </refnamediv> <refsect1> - <title>説明</title> + &reftitle.description; <methodsynopsis> <type>array</type><methodname>DomDocument->get_elements_by_tagname</methodname> <methodparam><type>string</type><parameter>name</parameter></methodparam> @@ -16,7 +20,8 @@ <para> </para> <para> - <function>DomDocument_add_root</function>も参照ください。 + <function>domdocument_add_root</function> + も参照ください。 </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomDocument-html-dump-mem.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomDocument-html-dump-mem.xml diff -u phpdoc-ja/reference/domxml/functions/DomDocument-html-dump-mem.xml:1.3 phpdoc-ja/reference/domxml/functions/DomDocument-html-dump-mem.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomDocument-html-dump-mem.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomDocument-html-dump-mem.xml Sun Jul 24 03:33:48 2005 @@ -1,50 +1,63 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> - <refentry id="function.DomDocument-html-dump-mem"> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.7 Maintainer: shimooka Status: ready --> +<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.6 --> +<!-- CREDITS: hirokawa --> + <refentry id="function.domdocument-html-dump-mem"> <refnamediv> <refname>DomDocument->html_dump_mem</refname> <refpurpose> - HTMLとして文字列に内部XMLツリーをダンプする + HTML として文字列に内部 XML ツリーをダンプする </refpurpose> </refnamediv> <refsect1> - <title>説明</title> + &reftitle.description; <methodsynopsis> <type>string</type><methodname>DomDocument->html_dump_mem</methodname> <void/> </methodsynopsis> <para> - Creates an HTML document from the dom representation. This function - usually is called after building a new dom document from scratch - as in the example below. + DOM 表現から HTML 文章を生成します。この関数は以下の例のように、 + 通常スクラッチから新規 DOM 文章を生成した後にコールされます。 </para> <para> <example> - <title>Creating a simple HTML document header</title> + <title>簡単な HTML 文章のヘッダを生成する</title> <programlisting role="php"> <![CDATA[ <?php + +// 文章を生成する $doc = domxml_new_doc("1.0"); -$root = $doc->create_element("HTML"); + +$root = $doc->create_element("html"); $root = $doc->append_child($root); -$head = $doc->create_element("HEAD"); + +$head = $doc->create_element("head"); $head = $root->append_child($head); -$title = $doc->create_element("TITLE"); + +$title = $doc->create_element("title"); $title = $head->append_child($title); + $text = $doc->create_text_node("This is the title"); $text = $title->append_child($text); -echo "<PRE>"; -echo htmlentities($doc->html_dump_mem()); -echo "</PRE>"; + +echo $doc->html_dump_mem(); ?> ]]> </programlisting> + &example.outputs; + <screen role="xml"> +<![CDATA[ +<html><head><title>This is the title</title></head></html> +]]> + </screen> </example> </para> <para> - See also <function>DomDocument_dump_file</function>, - <function>DomDocument_html_dump_mem</function>. + <function>domdocument_dump_file</function>, + <function>domdocument_html_dump_mem</function> + も参照ください。 </para> </refsect1> </refentry>
« previous php.doc.ja (#1066) next »