cvs: phpdoc /ja Translators /ja/functions domxml.xml
| From: | Rui Hirokawa | Date: | Sun, 14 Apr 2002 14:05:44 +0000 |
| Subject: | cvs: phpdoc /ja Translators /ja/functions domxml.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969344380@lists.php.net to get a copy of this message | ||
hirokawa Sun Apr 14 10:05:44 2002 EDT
Modified files:
/phpdoc/ja Translators
/phpdoc/ja/functions domxml.xml
Log:
update translation.
Index: phpdoc/ja/Translators diff -u phpdoc/ja/Translators:1.33 phpdoc/ja/Translators:1.34 --- phpdoc/ja/Translators:1.33 Tue Jan 22 09:02:27 2002 +++ phpdoc/ja/Translators Sun Apr 14 10:05:43 2002 @@ -100,7 +100,7 @@ functions/mcal.xml Rui Hirokawa functions/mcrypt.xml Rui Hirokawa functions/mhash.xml Rui Hirokawa -functions/ming.xml Rui Hirokawa +functions/ming.xml Rui Hirokawa Translating functions/misc.xml Michihide Hotta functions/mnogosearch.xml Rui Hirokawa functions/msession.xml Rui Hirokawa @@ -150,7 +150,7 @@ functions/xmlrpc.xml Rui Hirokawa functions/xslt.xml Rui Hirokawa functions/yaz.xml Rui Hirokawa -functions/zlib.xml Rui Hirokawa +functions/zlib.xml Rui Hirokawa Translating -------- language ---------------------------------------------------------- language/basic-syntax.xml Rui Hirokawa language/constants.xml Rui Hirokawa Index: phpdoc/ja/functions/domxml.xml diff -u phpdoc/ja/functions/domxml.xml:1.15 phpdoc/ja/functions/domxml.xml:1.16 --- phpdoc/ja/functions/domxml.xml:1.15 Sat Feb 2 10:44:14 2002 +++ phpdoc/ja/functions/domxml.xml Sun Apr 14 10:05:43 2002 @@ -1,921 +1,2910 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.15 $ --> +<!-- $Revision: 1.16 $ --> <reference id="ref.domxml"> <title>DOM XML颿°</title> <titleabbrev>DOM XML</titleabbrev> <partintro> - &warn.experimental; - <simpara> - ãã®ã¢ã¸ã¥ã¼ã«ã®é¢æ°ã¯ãconfigureæã« - <option role="configure">--with-dom=[DIR]</option>ãæå®ãã - <ulink url="&url.domxml;">GNOME xmlã©ã¤ãã©ãª</ulink>ã使ç¨ãã¦æ§ - ç¯ãããå ´åã«ã®ã¿å©ç¨å¯è½ã§ããå°ãªãã¨ãlibxml-2.2.7ãå¿ è¦ã§ãã - ãããã®é¢æ°ã¯ãPHP4ã§è¿½å ããã¾ããã - </simpara> - <simpara> - æ¬ã¢ã¸ã¥ã¼ã«ã«ããXMLããã¥ã¡ã³ããDOM APIã«ããæä½ãããã¨ãå¯è½ - ã«ãªãã¾ããXMLããã¥ã¡ã³ãå ¨ä½ã PHPãªãã¸ã§ã¯ãããªã¼ã«å¤æãã - <function>xmltree</function>颿°ããµãã¼ãããã¾ããç¾å¨ããã®ããªã¼ - ã¯èªã¿è¾¼ã¿ã®ã¿ãå¯è½ã§ãããä¿®æ£ãããã¨ã¯ã§ãã¾ããããããã - <function>dumpmem</function> ãé©ç¨ãããã¨ãã§ããªãããããã®å¶ - ç´ã«ã¯æå³ãããã¾ããããã®ãããXMLãã¡ã¤ã«ãèªã¿è¾¼ãã§ä¿®æ£ãã - ãã¼ã¸ã§ã³ãæ¸ãè¾¼ã¿ããå ´åã«ã¯ã<function>add_node</function>ã - <function>set_attribute</function>çã使ç¨ããæå¾ã« - <function>dumpmem</function> 颿°ã使ç¨ãã¦ä¸ããã - </simpara> - <simpara> - æ¬ã¢ã¸ã¥ã¼ã«ã¯ã次ã®å®æ°ãå®ç¾©ãã¾ãã - </simpara> - <table> - <title>XML宿°</title> - <tgroup cols="3"> - <thead> - <row> - <entry>宿°</entry> - <entry>å¤</entry> - <entry>説æ</entry> - </row> - </thead> - <tbody> - <row> - <entry>XML_ELEMENT_NODE</entry> - <entry>1</entry> - <entry>ãã®ãã¼ãã¯ã¨ã¬ã¡ã³ãã§ã</entry> - </row> - <row> - <entry>XML_ATTRIBUTE_NODE</entry> - <entry>2</entry> - <entry>ãã®ãã¼ãã¯å±æ§ã§ã</entry> - </row> - <row> - <entry>XML_TEXT_NODE</entry> - <entry>3</entry> - <entry>ãã®ãã¼ãã¯ããã¹ãé¨ã§ã</entry> - </row> - <row> - <entry>XML_CDATA_SECTION_NODE</entry> - <entry>4</entry> - <entry></entry> - </row> - <row> - <entry>XML_ENTITY_REF_NODE</entry> - <entry>5</entry> - <entry></entry> - </row> - <row> - <entry>XML_ENTITY_NODE</entry> - <entry>6</entry> - <entry>ãã®ãã¼ã㯠&nbsp; ã®ãããªã¨ã³ãã£ãã£ã§ã</entry> - </row> - <row> - <entry>XML_PI_NODE</entry> - <entry>7</entry> - <entry>ãã®ãã¼ãã¯å¦çå½ä»¤(PI)ã§ã</entry> - </row> - <row> - <entry>XML_COMMENT_NODE</entry> - <entry>8</entry> - <entry>ãã®ãã¼ãã¯ã³ã¡ã³ãã§ã</entry> - </row> - <row> - <entry>XML_DOCUMENT_NODE</entry> - <entry>9</entry> - <entry>ãã®ãã¼ãã¯ããã¥ã¡ã³ãã§ã</entry> - </row> - <row> - <entry>XML_DOCUMENT_TYPE_NODE</entry> - <entry>10</entry> - <entry></entry> - </row> - <row> - <entry>XML_DOCUMENT_FRAG_NODE</entry> - <entry>11</entry> - <entry></entry> - </row> - <row> - <entry>XML_NOTATION_NODE</entry> - <entry>12</entry> - <entry></entry> - </row> - <row> - <entry>XML_GLOBAL_NAMESPACE</entry> - <entry>1</entry> - <entry></entry> - </row> - <row> - <entry>XML_LOCAL_NAMESPACE</entry> - <entry>2</entry> - <entry></entry> - </row> - </tbody> - </tgroup> - </table> - <simpara> - æ¬ã¢ã¸ã¥ã¼ã«ã®å颿°ã¯ã2種é¡ã®æ¹æ³ã§ä½¿ç¨å¯è½ã§ãããªãã¸ã§ã¯ãæ - åçã§ãªãææ³ã¨ãã¦ã¯æåã®å¼æ°ã¨ãã¦ãªãã¸ã§ã¯ããæ¸¡ãæ¹æ³ãããã - ãªãã¸ã§ã¯ãæåçãªæ¹æ³ã¨ãã¦ã¯é¢æ°ããªãã¸ã§ã¯ãã®ã¡ã½ããã¨ã㦠- ã³ã¼ã«ããæ¹æ³ãããã¾ããæ¬ããã¥ã¡ã³ãã¯ããªãã¸ã§ã¯ãæåçã§ãª - ã颿°ã説æãã¾ãããæ¥é è¾ "domxml_" ãçç¥ãããã¨ã«ãããªãã¸ã§ - ã¯ãæåçã¡ã½ããã使ç¨ãããã¨ãå¯è½ã§ãã - </simpara> - <simpara> - æ¬ã¢ã¸ã¥ã¼ã«ã¯ã以ä¸ã®ãã¼ãã«ã«ç¤ºã —ããããã£ããã³ã¡ã½ã - ããå«ã — å¤ãã®ã¯ã©ã¹ãå®ç¾©ãã¾ãã - </simpara> - <para> - <table> - <title>DomDocument ã¯ã©ã¹ (ã¡ã½ãã)</title> - <tgroup cols="3"> - <thead> - <row> - <entry>ã¡ã½ããå</entry> - <entry>颿°å</entry> - <entry>説æ</entry> - </row> - </thead> - <tbody> - <row> - <entry>root</entry> - <entry><function>domxml_root</function></entry> - <entry></entry> - </row> - <row> - <entry>children</entry> - <entry><function>domxml_children</function></entry> - <entry></entry> - </row> - <row> - <entry>add_root</entry> - <entry><function>domxml_add_root</function></entry> - <entry></entry> - </row> - <row> - <entry>dtd</entry> - <entry><function>domxml_intdtd</function></entry> - <entry></entry> - </row> - <row> - <entry>dumpmem</entry> - <entry><function>domxml</function></entry> - <entry></entry> - </row> - <row> - <entry>xpath_init</entry> - <entry>xpath_init</entry> - <entry></entry> - </row> - <row> - <entry>xpath_new_context</entry> - <entry>xpath_new_context</entry> - <entry></entry> - </row> - <row> - <entry>xptr_new_context</entry> - <entry>xptr_new_context</entry> - <entry></entry> - </row> - </tbody> - </tgroup> - </table> - </para> - - <para> - <table> - <title>DomDocument ã¯ã©ã¹ (屿§)</title> - <tgroup cols="3"> - <thead> - <row> - <entry>åå</entry> - <entry>å</entry> - <entry>説æ</entry> - </row> - </thead> - <tbody> - <row> - <entry>doc</entry> - <entry>class DomDocument</entry> - <entry>ãªãã¸ã§ã¯ãèªèº«</entry> - </row> - <row> - <entry>name</entry> - <entry>string</entry> - <entry></entry> - </row> - <row> - <entry>url</entry> - <entry>string</entry> - <entry></entry> - </row> - <row> - <entry>version</entry> - <entry>string</entry> - <entry>XMLã®ãã¼ã¸ã§ã³</entry> - </row> - <row> - <entry>encoding</entry> - <entry>string</entry> - <entry></entry> - </row> - <row> - <entry>standalone</entry> - <entry>long</entry> - <entry>ãã®ãã¡ã¤ã«ãstandaloneãã¼ã¸ã§ã³ã®å ´åã«1</entry> - </row> - <row> - <entry>type</entry> - <entry>long</entry> - <entry>表ä¸ã®å®æ°ã®ã©ãã ... </entry> - </row> - <row> - <entry>compression</entry> - <entry>long</entry> - <entry>ãã®ãã¡ã¤ã«ãå§ç¸®ããã¦ããå ´åã«1</entry> - </row> - <row> - <entry>charset</entry> - <entry>long</entry> - <entry></entry> - </row> - </tbody> - </tgroup> - </table> - </para> - - <para> - <table> - <title>DomNode class (ã¡ã½ãã)</title> - <tgroup cols="3"> - <thead> - <row> - <entry>åå</entry> - <entry>PHPå</entry> - <entry>説æ</entry> - </row> - </thead> - <tbody> - <row> - <entry>lastchild</entry> - <entry><function>domxml_last_child</function></entry> - <entry></entry> - </row> - <row> - <entry>children</entry> - <entry><function>domxml_children</function></entry> - <entry></entry> - </row> - <row> - <entry>parent</entry> - <entry><function>domxml_parent</function></entry> - <entry></entry> - </row> - <row> - <entry>new_child</entry> - <entry><function>domxml_new_child</function></entry> - <entry></entry> - </row> - <row> - <entry>get_attribute</entry> - <entry><function>domxml_get_attribute</function></entry> - <entry></entry> - </row> - <row> - <entry>set_attribute</entry> - <entry><function>domxml_set_attribute</function></entry> - <entry></entry> - </row> - <row> - <entry>attributes</entry> - <entry><function>domxml_attributes</function></entry> - <entry></entry> - </row> - <row> - <entry>node</entry> - <entry><function>domxml_node</function></entry> - <entry></entry> - </row> - <row> - <entry><function>set_content</function></entry> - <entry>domxml_set_content</entry> - <entry></entry> - </row> - </tbody> - </tgroup> - </table> - </para> - - <para> - <table> - <title>DomNode ã¯ã©ã¹ (屿§)</title> - <tgroup cols="3"> - <thead> - <row> - <entry>åå</entry> - <entry>å</entry> - <entry>説æ</entry> - </row> - </thead> - <tbody> - <row> - <entry>node</entry> - <entry>class DomNode</entry> - <entry>ãªãã¸ã§ã¯ãèªèº«</entry> - </row> - <row> - <entry>type</entry> - <entry>long</entry> - <entry></entry> - </row> - <row> - <entry>name</entry> - <entry>string</entry> - <entry></entry> - </row> - <row> - <entry>content</entry> - <entry>string</entry> - <entry></entry> - </row> - </tbody> - </tgroup> - </table> - </para> + <sect1 id="domxml-intro"> + <title>ã¯ããã«</title> + &warn.experimental; + <para> + domxmlæ¡å¼µã¢ã¸ã¥ã¼ã«ã¯ãDOMæ¨æºã«å¯¾ããäºææ§ãæ¹åããããPHPãã¼ + ã¸ã§ã³4.3.0ã§æ¸ãç´ããã¾ãããæ¡å¼µã¢ã¸ã¥ã¼ã«ã«ã¯ãã¾ã ãå¤ãã®å¤ + ã颿°ãå«ã¾ãã¦ãã¾ããã使ç¨ã¯æ¨å¥¨ããã¾ãããç¹ã«ãªãã¸ã§ã¯ã + æåã§ãªã颿°ã®ä½¿ç¨ã¯é¿ããã¹ãã§ãã + </para> + <para> + æ¡å¼µã¢ã¸ã¥ã¼ã«ã«ããDOM APIã§XMLããã¥ã¡ã³ããå¦çãããã¨ãå¯è½ + ã¨ãªãã¾ããã¾ããå®å ¨ãªXMLããã¥ã¡ã³ããPHPãªãã¸ã§ã¯ãããªã¼ã« + 夿ãã颿°<function>domxml_xmltree</function>ãæä¾ããã¦ãã¾ãã + ç¾å¨ããã®ããªã¼ã¯èªã¿è¾¼ã¿å¯ã¨ããã¦ãã¾ãããã®ããªã¼ãä¿®æ£ãã + ãã¨ã¯å¯è½ã§ããã<function>DomDocument_dump_mem</function>ã«ãã + ãé©ç¨ãããã¨ã¯ã§ããªããããæå³ã¯ããã¾ããã + ããã§ãXMLãã¡ã¤ã«ãèªã¿è¾¼ã¿ãä¿®æ£ããçãæ¸ãè¾¼ã¿ããå ´åã + <function>DomDocument_create_element</function>, + <function>DomDocument_create_text</function>, + <function>set_attribute</function>çã使ç¨ããæå¾ã« + <function>DomDocument_dump_mem</function>颿°ã使ç¨ãã¦ä¸ããã + </para> + </sect1> + + <sect1 id="domxml-requirements"> + <title>å¿ è¦ãªãã®</title> + <para> + ãã®æ¡å¼µã¢ã¸ã¥ã¼ã«ã¯ãPHPã®configureã + <ulink url="&url.domxml;">GNOME XMLã©ã¤ãã©ãª</ulink>ãç¨ã㦠+ <option role="configure">--with-dom=[DIR]</option>ãæå®ã㦠+ å®è¡ããã¦ããå ´åã®ã¿å©ç¨å¯è½ã§ããlibxml-2.2.7以éãå¿ è¦ã§ãã + </para> + </sect1> + + <sect1 id="domxml-deprecated"> + <title>å¤ã颿°</title> + <para> + <table> + <title>å¤ã颿°ã¨ãã®ä»£æ¿é¢æ°</title> + <tgroup cols="2"> + <thead> + <row> + <entry>å¤ã颿°</entry> + <entry>æ°ãã颿°</entry> + </row> + </thead> + <tbody> + <row> + <entry>xmldoc</entry> + <entry><function>domxml_open_mem</function></entry> + </row> + <row> + <entry>xmldocfiel</entry> + <entry><function>domxml_open_file</function></entry> + </row> + <row> + <entry>domxml_new_xmldoc</entry> + <entry><function>domxml_new_doc</function></entry> + </row> + <row> + <entry>domxml_dump_mem</entry> + <entry><function>DomDocument_dump_mem</function></entry> + </row> + <row> + <entry>domxml_dump_mem_file</entry> + <entry><function>DomDocument_dump_file</function></entry> + </row> + <row> + <entry>DomDocument_dump_mem_file</entry> + <entry><function>DomDocument_dump_file</function></entry> + </row> + <row> + <entry>DomDocument_add_root</entry> + <entry> + <function>DomDocument_create_element</function>ã®å¾ã« + <function>DomNode_append_child</function> + </entry> + </row> + <row> + <entry>DomDocument_dtd</entry> + <entry><function>DomDocument_doctype</function></entry> + </row> + <row> + <entry>DomDocument_root</entry> + <entry><function>DomDocument_document_element</function></entry> + </row> + <row> + <entry>DomDocument_children</entry> + <entry><function>DomNode_child_nodes</function></entry> + </row> + <row> + <entry>DomDocument_imported_node</entry> + <entry>No replacement.</entry> + </row> + <row> + <entry>DomNode_add_child</entry> + <entry> + Create a new node with e.g. + <function>DomDocument_create_element</function> und add it with + <function>DomNode_append_child</function>. + </entry> + </row> + <row> + <entry>DomNode_children</entry> + <entry><function>DomNode_child_nodes</function></entry> + </row> + <row> + <entry>DomNode_parent</entry> + <entry><function>DomNode_parent_node</function></entry> + </row> + <row> + <entry>DomNode_new_child</entry> + <entry> + ä¾ãã°<function>DomDocument_create_element</function>ã§ + æ°è¦ãã¼ãã使ãã + <function>DomNode_append_child</function>ã§è¿½å ãã¾ãã + </entry> + </row> + <row> + <entry>DomNode_set_content</entry> + <entry> + ä¾ãã°<function>DomDocument_create_element</function>ã§ + æ°è¦ãã¼ãã使ãã + <function>DomNode_append_child</function>ã§è¿½å ãã¾ãã + </entry> + </row> + <row> + <entry>DomNode_get_content</entry> + <entry> + ã³ã³ãã³ãã¯ããã¹ããã¼ãã§ããã + <function>DomNode_child_nodes</function>ã§ã¢ã¯ã»ã¹å¯è½ã§ãã + </entry> + </row> + <row> + <entry>DomNode_set_content</entry> + <entry> + ã³ã³ãã³ãã¯ããã¹ããã¼ãã§ããã + <function>DomNode_append_child</function>ã§è¿½å ã§ãã¾ãã + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </sect1> + + <sect1 id="domxml-constants"> + <title>宿°</title> + <para> + ãã®ã¢ã¸ã¥ã¼ã«ã¯ã以ä¸ã®å®æ°ãå®ç¾©ãã¾ãã + </para> + <table> + <title>XML宿°</title> + <tgroup cols="3"> + <thead> + <row> + <entry>宿°</entry> + <entry>å¤</entry> + <entry>説æ</entry> + </row> + </thead> + <tbody> + <row> + <entry>XML_ELEMENT_NODE</entry> + <entry>1</entry> + <entry>ãã¼ãã¯è¦ç´ (element)ã§ãã</entry> + </row> + <row> + <entry>XML_ATTRIBUTE_NODE</entry> + <entry>2</entry> + <entry>ãã¼ãã¯å±æ§(attribute)ã§ãã</entry> + </row> + <row> + <entry>XML_TEXT_NODE</entry> + <entry>3</entry> + <entry>ãã¼ãã¯ããã¹ãã®ä¸é¨ã§ãã</entry> + </row> + <row> + <entry>XML_CDATA_SECTION_NODE</entry> + <entry>4</entry> + <entry></entry> + </row> + <row> + <entry>XML_ENTITY_REF_NODE</entry> + <entry>5</entry> + <entry></entry> + </row> + <row> + <entry>XML_ENTITY_NODE</entry> + <entry>6</entry> + <entry>ãã¼ãã¯&nbsp;ã®ãããªã¨ã³ãã£ãã£ã§ãã</entry> + </row> + <row> + <entry>XML_PI_NODE</entry> + <entry>7</entry> + <entry>ãã¼ãã¯å¦çå½ä»¤(PI)ã§ãã</entry> + </row> + <row> + <entry>XML_COMMENT_NODE</entry> + <entry>8</entry> + <entry>ãã¼ãã¯ã³ã¡ã³ãã§ãã</entry> + </row> + <row> + <entry>XML_DOCUMENT_NODE</entry> + <entry>9</entry> + <entry>ãã¼ãã¯ããã¥ã¡ã³ãã§ãã</entry> + </row> + <row> + <entry>XML_DOCUMENT_TYPE_NODE</entry> + <entry>10</entry> + <entry></entry> + </row> + <row> + <entry>XML_DOCUMENT_FRAG_NODE</entry> + <entry>11</entry> + <entry></entry> + </row> + <row> + <entry>XML_NOTATION_NODE</entry> + <entry>12</entry> + <entry></entry> + </row> + <row> + <entry>XML_GLOBAL_NAMESPACE</entry> + <entry>1</entry> + <entry></entry> + </row> + <row> + <entry>XML_LOCAL_NAMESPACE</entry> + <entry>2</entry> + <entry></entry> + </row> + </tbody> + </tgroup> + </table> + </sect1> + + <sect1 id="domxml-classes"> + <title>ã¯ã©ã¹</title> + <para> + ã¢ã¸ã¥ã¼ã«ã®APIã¯ãDOMã¬ãã«2æ¨æºã«å¯è½ãªéãåºã¥ãã¦ãã¾ããçµæ + çã«APIã¯å®å ¨ã«ãªãã¸ã§ã¯ãæåã§ãããã®ã¢ã¸ã¥ã¼ã«ã使ç¨ããéã« + DOMæ¨æºãå©ç¨ã§ãããã¨ã¯æã¾ãããã¨ã§ãã + ãã®APIã¯ãªãã¸ã§ã¯ãæåã§ãããæåã®å¼æ°ã¨ãã¦å¦çãããªãã¸ã§ + ã¯ããæ¸¡ããªãã¸ã§ã¯ãæåã§ãªãæ¹æ³ã§ã³ã¼ã«ãããã¨ãã§ããå¤ã + ã®é¢æ°ãããã¾ãããããã®é¢æ°ã¯ã主ã«éå»ã®ãã¼ã¸ã§ã³ã¨ã®äºææ§ + 確ä¿ã®ããã«ç¶æããã¦ãã¾ãããæ°è¦éçºã§ã®ä½¿ç¨ã¯ãã¯ãæ¨å¥¨ãã + ã¾ããã + </para> + <para> + ãã®APIã¯ãå ¬å¼ãªDOM APIã¨ã¯äºã¤ã®ç¹ã§ç°ãªã£ã¦ãã¾ããã¾ããå ¨ã¦ + ã®ã¯ã©ã¹ã®å±æ§ã¯ãåãååãæãã颿°ã¨ãã¦å®è£ ããã颿°åã¯PHP + ã®å½å表è¨ã«åºã¥ãã¦ãã¾ããããã¯ãDOM颿°lastChild()ã + last_child()ã¨æ¸ããããã¨ãæå³ãã¾ãã + </para> + <para> + ãã®ã¢ã¸ã¥ã¼ã«ã¯ãä¸é£ã®ã¯ã©ã¹ãå®ç¾©ãã¾ããã¡ã½ãããå«ãããªã¹ + ãã以ä¸ã®è¡¨ã«ç¤ºãã¾ããã¯ã©ã¹ã¯ãDOMæ¨æºã§DOMxxxã¨ããååã®ãã® + ã¨ç価ã§ãã + </para> + + <para> + <table> + <title>ã¯ã©ã¹ã®ä¸è¦§</title> + <tgroup cols="2"> + <thead> + <row> + <entry>ã¯ã©ã¹å</entry> + <entry>親ã¯ã©ã¹</entry> + </row> + </thead> + <tbody> + <row> + <entry>DomAttribute</entry> + <entry>DomNode</entry> + </row> + <row> + <entry>DomCData</entry> + <entry>DomNode</entry> + </row> + <row> + <entry>DomComment</entry> + <entry>DomCData : DomNode</entry> + </row> + <row> + <entry>DomDocument</entry> + <entry>DomNode</entry> + </row> + <row> + <entry>DomDocumentType</entry> + <entry>DomNode</entry> + </row> + <row> + <entry>DomElement</entry> + <entry>DomNode</entry> + </row> + <row> + <entry>DomEntity</entry> + <entry>DomNode</entry> + </row> + <row> + <entry>DomEntityReference</entry> + <entry>DomNode</entry> + </row> + <row> + <entry>DomProcessingInstruction</entry> + <entry>DomNode</entry> + </row> + <row> + <entry>DomText</entry> + <entry>DomCData : DomNode</entry> + </row> + <row> + <entry>Parser</entry> + <entry>ç¾å¨ã¯ã¾ã DomParserã¨å¼ã°ãã¦ãã¾ã</entry> + </row> + <row> + <entry>XPathContext</entry> + <entry></entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + <table> + <title>DomDocument ã¯ã©ã¹ (DomDocument : DomNode)</title> + <tgroup cols="3"> + <thead> + <row> + <entry>ã¡ã½ããå</entry> + <entry>颿°å</entry> + <entry>注æ</entry> + </row> + </thead> + <tbody> + <row> + <entry>doctype</entry> + <entry><function>DomDocument_doctype</function></entry> + <entry></entry> + </row> + <row> + <entry>document_elemnent</entry> + <entry><function>DomDocument_document_element</function></entry> + <entry></entry> + </row> + <row> + <entry>create_element</entry> + <entry><function>DomDocument_create_element</function></entry> + <entry></entry> + </row> + <row> + <entry>create_text_node</entry> + <entry><function>DomDocument_create_text_node</function></entry> + <entry></entry> + </row> + <row> + <entry>create_comment</entry> + <entry><function>DomDocument_create_comment</function></entry> + <entry></entry> + </row> + <row> + <entry>create_cdata_section</entry> + <entry><function>DomDocument_create_cdata_section</function></entry> + <entry></entry> + </row> + <row> + <entry>create_processing_instruction</entry> + <entry><function>DomDocument_create_processing_instruction</function></entry> + <entry></entry> + </row> + <row> + <entry>create_attribute</entry> + <entry><function>DomDocument_create_attribute</function></entry> + <entry></entry> + </row> + <row> + <entry>create_entity_reference</entry> + <entry><function>DomDocument_create_entity_reference</function></entry> + <entry></entry> + </row> + <row> + <entry>get_elements_by_tagname</entry> + <entry><function>DomDocument_get_elements_by_tagname</function></entry> + <entry></entry> + </row> + <row> + <entry>get_element_by_id</entry> + <entry><function>DomDocument_get_element_by_id</function></entry> + <entry></entry> + </row> + <row> + <entry>dump_mem</entry> + <entry><function>DomDocument_dump_mem</function></entry> + <entry>DOMæ¨æºã§ã¯ãªã</entry> + </row> + <row> + <entry>dump_file</entry> + <entry><function>DomDocument_dump_file</function></entry> + <entry>DOMæ¨æºã§ã¯ãªã</entry> + </row> + <row> + <entry>html_dump_mem</entry> + <entry><function>DomDocument_html_dump_mem</function></entry> + <entry>DOMæ¨æºã§ã¯ãªã</entry> + </row> + <row> + <entry>xpath_init</entry> + <entry>xpath_init</entry> + <entry>DOMæ¨æºã§ã¯ãªã</entry> + </row> + <row> + <entry>xpath_new_context</entry> + <entry>xpath_new_context</entry> + <entry>DOMæ¨æºã§ã¯ãªã</entry> + </row> + <row> + <entry>xptr_new_context</entry> + <entry>xptr_new_context</entry> + <entry>DOMæ¨æºã§ã¯ãªã</entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + <table> + <title>DomElement ã¯ã©ã¹ (DomElement : DomNode)</title> + <tgroup cols="3"> + <thead> + <row> + <entry>ã¡ã½ããå</entry> + <entry>颿°å</entry> + <entry>注æ</entry> + </row> + </thead> + <tbody> + <row> + <entry>tagname</entry> + <entry><function>DomElement_tagname</function></entry> + <entry></entry> + </row> + <row> + <entry>get_attribute</entry> + <entry><function>DomElement_get_attribute</function></entry> + <entry></entry> + </row> + <row> + <entry>set_attribute</entry> + <entry><function>DomElement_set_attribute</function></entry> + <entry></entry> + </row> + <row> + <entry>remove_attribute</entry> + <entry><function>DomElement_remove_attribute</function></entry> + <entry></entry> + </row> + <row> + <entry>get_attribute_node</entry> + <entry><function>DomElement_get_attribute_node</function></entry> + <entry></entry> + </row> + <row> + <entry>set_attribute_node</entry> + <entry><function>DomElement_set_attribute_node</function></entry> + <entry></entry> + </row> + <row> + <entry>get_elements_by_tagname</entry> + <entry><function>DomElement_get_elements_by_tagname</function></entry> + <entry></entry> + </row> + <row> + <entry>has_attribute</entry> + <entry><function>DomElement_has_attribute</function></entry> + <entry></entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + <table> + <title>DomNode ã¯ã©ã¹</title> + <tgroup cols="2"> + <thead> + <row> + <entry>ã¡ã½ããå</entry> + <entry>注æ</entry> + </row> + </thead> + <tbody> + <row> + <entry><function>DomNode_node_name</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_node_value</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_node_type</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_last_child</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_first_child</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_child_nodes</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_previous_sibling</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_next_sibling</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_parent_node</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_owner_document</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_insert_before</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_append_child</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_remove_child</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_has_child_nodes</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_has_attributes</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_clone_node</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_attributes</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_unlink_node</function></entry> + <entry>DOMæ¨æºã§ã¯ãªã</entry> + </row> + <row> + <entry><function>DomNode_replace_node</function></entry> + <entry>DOMæ¨æºã§ã¯ãªã</entry> + </row> + <row> + <entry><function>DomNode_set_content</function></entry> + <entry>DOMæ¨æºã«ã¯ãªããå¤ãã¡ã½ããã§ã</entry> + </row> + <row> + <entry><function>DomNode_get_content</function></entry> + <entry>DOMæ¨æºã«ã¯ãªããå¤ãã¡ã½ããã§ã</entry> + </row> + <row> + <entry><function>DomNode_dump_node</function></entry> + <entry>DOMæ¨æºã§ã¯ãªã</entry> + </row> + <row> + <entry><function>DomNode_is_blank_node</function></entry> + <entry>DOMæ¨æºã§ã¯ãªã</entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + <table> + <title>DomAttribute ã¯ã©ã¹ (DomAttribute : DomNode)</title> + <tgroup cols="3"> + <thead> + <row> + <entry>ã¡ã½ããå</entry> + <entry></entry> + <entry>注æ</entry> + </row> + </thead> + <tbody> + <row> + <entry>name</entry> + <entry><function>DomAttribute_name</function></entry> + <entry></entry> + </row> + <row> + <entry>value</entry> + <entry><function>DomAttribute_value</function></entry> + <entry></entry> + </row> + <row> + <entry>specified</entry> + <entry><function>DomAttribute_specified</function></entry> + <entry></entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + <table> + <title>DomProcessingInstruction ã¯ã©ã¹ (DomProcessingInstruction : DomNode)</title> + <tgroup cols="3"> + <thead> + <row> + <entry>ã¡ã½ããå</entry> + <entry>颿°å</entry> + <entry>注æ</entry> + </row> + </thead> + <tbody> + <row> + <entry>target</entry> + <entry><function>DomProcessingInstruction_target</function></entry> + <entry></entry> + </row> + <row> + <entry>data</entry> + <entry><function>DomProcessingInstruction_data</function></entry> + <entry></entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + <table> + <title>Parser ã¯ã©ã¹</title> + <tgroup cols="3"> + <thead> + <row> + <entry>ã¡ã½ããå</entry> + <entry>颿°å</entry> + <entry>注è¨</entry> + </row> + </thead> + <tbody> + <row> + <entry>add_chunk</entry> + <entry><function>Parser_add_chunk</function></entry> + <entry></entry> + </row> + <row> + <entry>end</entry> + <entry><function>Parser_end</function></entry> + <entry></entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + <table> + <title>XPathContext ã¯ã©ã¹</title> + <tgroup cols="3"> + <thead> + <row> + <entry>ã¡ã½ããå</entry> + <entry>颿°å</entry> + <entry>注è¨</entry> + </row> + </thead> + <tbody> + <row> + <entry>eval</entry> + <entry><function>XPathContext_eval</function></entry> + <entry></entry> + </row> + <row> + <entry>eval_expression</entry> + <entry><function>XPathContext_eval_expression</function></entry> + <entry></entry> + </row> + <row> + <entry>register_ns</entry> + <entry><function>XPathContext_register_ns</function></entry> + <entry></entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + <table> + <title>DomDocumentType ã¯ã©ã¹ (DomDocumentType : DomNode)</title> + <tgroup cols="3"> + <thead> + <row> + <entry>ã¡ã½ããå</entry> + <entry>颿°å</entry> + <entry>注è¨</entry> + </row> + </thead> + <tbody> + <row> + <entry>name</entry> + <entry><function>DomDocumentType_name</function></entry> + <entry></entry> + </row> + <row> + <entry>entities</entry> + <entry><function>DomDocumentType_entities</function></entry> + <entry></entry> + </row> + <row> + <entry>notations</entry> + <entry><function>DomDocumentType_notations</function></entry> + <entry></entry> + </row> + <row> + <entry>public_id</entry> + <entry><function>DomDocumentType_public_id</function></entry> + <entry></entry> + </row> + <row> + <entry>system_id</entry> + <entry><function>DomDocumentType_system_id</function></entry> + <entry></entry> + </row> + <row> + <entry>internal_subset</entry> + <entry><function>DomDocumentType_internal_subset</function></entry> + <entry></entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + ã¯ã©ã¹DomDtdã¯DomNodeããæ´¾çãããã®ã§ããDomCommentã¯DomCDataã + ãæ´¾çãããã®ã§ãã + </para> + </sect1> + + <sect1 id="domxml-examples"> + <title>ä¾</title> + <para> + ãã®ãªãã¡ã¬ã³ã¹ã«ãããå¤ãã®ä¾ã¯ãXMLæååãå¿ è¦ã¨ãã¾ãããã® + æååãå ¨ã¦ã®ä¾ã§ç¹°ããããè¨è¿°ãããããã«ããã¡ã¤ã«ã«æ¸ãè¾¼ã + ã§ãåä¾ã§èªã¿è¾¼ããã¨ã«ãã¾ãããã®èªã¿è¾¼ã¾ãããã¡ã¤ã«ã¯ãä»¥ä¸ + ã®ä¾ã«ç¤ºããã¦ãã¾ããXMLããã¥ã¡ã³ãã使ãã + <function>DomDocument_open_file</function>ã§èªã¿è¾¼ããã¨ãå¯è½ã§ + ãã + </para> + <para> + <example> + <title>XMLæååãæãããã¡ã¤ã«example.incãèªã¿è¾¼ã</title> + <programlisting role="php"> +<![CDATA[ +<?php +$xmlstr = "<?xml version='1.0' standalone='yes'?> +<!DOCTYPE chapter SYSTEM '/share/sgml/Norman_Walsh/db3xml10/db3xml10.dtd' +[ <!ENTITY sp \"spanish\"> +]> +<!-- lsfj --> +<chapter language='en'><title language='en'>Title</title> + <para language='ge'> + &sp; + <!-- comment --> + <informaltable ID='findme' language='&sp;'> + <tgroup cols='3'> + <tbody> + <row><entry>a1</entry><entry +morerows='1'>b1</entry><entry>c1</entry></row> +<row><entry>a2</entry><entry>c2</entry></row> + <row><entry>a3</entry><entry>b3</entry><entry>c3</entry></row> + </tbody> + </tgroup> + </informaltable> + </para> +</chapter>"; +?> +]]> + </programlisting> + </example> + </para> + </sect1> </partintro> - <!-- class Dom document --> - <!-- has member functions - array root([int doc_handle]) - returns array of root nodes of this document. Array - elements are objects of class "Dom node" having properties of - "node" (resource), "type" (long), "name" (string) - and optionally "content" (string). - - array children([ int node ]) - returns an array of child nodes of this element. Array - elements are objects of class "Dom node" having properties - of "node" (resource), "type" (long), "name" (string) - and optionally "content" (string). - - object add_root([int doc_handle,] string name) - Add a root node to document. - - returns an object of class "Dom node" having properties - of "node" (resource), "type" (long), "name" (string) - and optionally "content" (string). - - object intdtd([int doc_handle]) - returns the DTD of document. - - returns an object of class "Dtd" having properties - of "dtd" (resource), "sysid" (string), "name" (string) - and optionally "extid" (string). - - string dumpmem([int doc_handle]) - dumps document into string. - --> - - <!-- class Dom node - object lastchild([int node]) - returns Dom node object - - array children([int node]) - as above - - object parent([ int node]) - returns Dom node object - (parent of this node) - - new_child - string getattr([int node,] string attrname) - get value of attribute named attrname - - bool setattr([int node,] string attrname, string value) - set value of given attribute. - - array attributes([int node]) - returns associative array of (string name, string value) - pairs. - - object node(string name) - creates a named Dom node object. - --> - - <!-- class Dom Attribute - name - --> - - <!-- class Dom Namespace - --> + <refentry id="function.domxml-open-mem"> + <refnamediv> + <refname>domxml_open_mem</refname> + <refpurpose>XMLããã¥ã¡ã³ãããDOMãªãã¸ã§ã¯ãã使ãã</refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>domxml_open_mem</methodname> + <methodparam><type>string</type><parameter>str</parameter></methodparam> + </methodsynopsis> + <para> + ãã®é¢æ°ã¯ã<parameter>str</parameter>ã®XMLããã¥ã¡ã³ãããã¼ã¹ãã + ã¯ã©ã¹"Dom document"ã®ãªãã¸ã§ã¯ããè¿ãã¾ãã + ãã®ãªãã¸ã§ã¯ãã¯ãä¸ã®ãªã¹ãã示ããããããã£ãæãã¦ãã¾ãã + ãã®é¢æ°ã<function>domxml_open_file</function>ã + <function>domxml_new_doc</function>ã¯ãå ¨ã¦ã®ä»ã®é¢æ°ãã³ã¼ã«ãã + åã«ã³ã¼ã«ããå¿ è¦ãããã¾ãã + </para> + <para> + <example> + <title>æååããXMLããã¥ã¡ã³ãããªã¼ãã³ãã</title> + <programlisting role="php"> +<![CDATA[ +<?php +include("example.inc"); + +if(!$dom = domxml_open_mem($xmlstr)) { + echo "Error while parsing the document\n"; + exit; +} + +$root = $dom->document_element(); +?> +]]> + </programlisting> + </example> + </para> + <para> + <function>domxml_open_file</function>, + <function>domxml_new_doc</function>ãåç §ä¸ããã + </para> + </refsect1> + </refentry> + + <refentry id="function.domxml-open-file"> + <refnamediv> + <refname>domxml_open_file</refname> + <refpurpose>XMLãã¡ã¤ã«ããDOMãªãã¸ã§ã¯ãã使ãã</refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>domxml_open_file</methodname> + <methodparam><type>string</type> + <parameter>filename</parameter> + </methodparam> + </methodsynopsis> + <para> + ãã®é¢æ°ã¯ã<parameter>filename</parameter>ã¨ããååã®ãã¡ã¤ã«ã® + ä¸ã®XMLããã¥ã¡ã³ãããã¼ã¹ããã¯ã©ã¹"Dom document"ã®ãªãã¸ã§ã¯ã + ãè¿ãã¾ãããã®ãªãã¸ã§ã¯ãã¯ä¸è¨ãªã¹ãã¨åãããããã£ãæãã¾ + ãããã¡ã¤ã«ã¯ãèªã¿è¾¼ã¿ã®ã¿å¯ã§ã¢ã¯ã»ã¹ããã¾ãã + </para> + <para> + <example> + <title>ãã¡ã¤ã«ããXMLããã¥ã¡ã³ãããªã¼ãã³ãã</title> + <programlisting role="php"> +<![CDATA[ +<?php + +if(!$dom = domxml_open_file("example.xml")) { + echo "Error while parsing the document\n"; + exit; +} + +$root = $dom->document_element(); +?> +]]> + </programlisting> + </example> + </para> + <para> + <function>domxml_open_mem</function>, + <function>domxml_new_doc</function>ãåç §ä¸ããã + </para> + </refsect1> + </refentry> + + <refentry id="function.domxml-new-doc"> + <refnamediv> + <refname>domxml_new_doc</refname> + <refpurpose> + 空ã®XMLããã¥ã¡ã³ãã使ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>domxml_new_doc</methodname> + <methodparam><type>string</type> + <parameter>version</parameter> + </methodparam> + </methodsynopsis> + &warn.experimental.func; + <para> + ã¹ã¯ã©ããããæ°è¦DOMããã¥ã¡ã³ãã使ããè¿ãã¾ãã + </para> + <para> + <function>DomDocument_add_root</function>ãåç §ä¸ããã + </para> + </refsect1> + </refentry> + + <refentry id="function.domxml-xmltree"> + <refnamediv> + <refname>domxml_xmltree</refname> + <refpurpose> + XMLããã¥ã¡ã³ãããPHPãªãã¸ã§ã¯ãããªã¼ã使ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>domxml_xmltree</methodname> + <methodparam><type>string</type><parameter>str</parameter></methodparam> + </methodsynopsis> + &warn.experimental.func; + <para> + ãã®é¢æ°ã¯ã<parameter>str</parameter>ã®XMLããã¥ã¡ã³ãããã¼ã¹ãã + ãã¼ã¹æ¸ã®ããã¥ã¡ã³ãã¨ãã¦PHPãªãã¸ã§ã¯ãã®ããªã¼ãè¿ãã¾ããä» + ã®é¢æ°ã¯ãã®ããªã¼ã«ã¯ã¢ã¯ã»ã¹ã§ããªãããããã®é¢æ°ã¯ä»ã®é¢æ°ã¨ + ç°ãªã£ã¦ãã¾ããä¾ãã°ãã¼ãã追å ããæã®ããã«ããã®ããªã¼ãä¿® + æ£ãããã¨ã«ã¯ãç¾å¨XMLãã¡ã¤ã«ã¨ãã¦ããªã¼ããã³ãããææ®µããªã + ããæå³ãããã¾ããããã®é¢æ°ã¯ããã¡ã¤ã«ãèªã¿è¾¼ãã§å®æ°ã調㹠+ ããå ´åã«ã¯æç¨ã§ãã + </para> + </refsect1> + </refentry> + + <refentry id='function.domxml-version'> + <refnamediv> + <refname>domxml_version</refname> + <refpurpose> + XMLã©ã¤ãã©ãªã®ãã¼ã¸ã§ã³ãåå¾ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>string</type><methodname>domxml_version</methodname> + <void/> + </methodsynopsis> + <para> + ãã®é¢æ°ã¯ãç¾å¨ä½¿ç¨ãããXMLã©ã¤ãã©ãªã®ãã¼ã¸ã§ã³ãè¿ãã¾ãã + </para> + </refsect1> + </refentry> + + <!-- Start of class DomDocument --> + + <refentry id="function.DomDocument-doctype"> + <refnamediv> + <refname>DomDocument->doctype</refname> + <refpurpose> + ããã¥ã¡ã³ãåãè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>DomDocument->doctype</methodname> + <void/> + </methodsynopsis> + <para> + ãã®é¢æ°ã¯ãã¯ã©ã¹<classname>DomDocumentType</classname>ã®ãªãã¸ã§ + ã¯ããè¿ãã¾ãã4.3ããåã®ãã¼ã¸ã§ã³ã®PHPã§ã¯ããã®ãªãã¸ã§ã¯ã + ã¯ãã¯ã©ã¹<classname>Dtd</classname>ã§ããããDOMæ¨æºã«ã¯ãã®ãã + ãªã¯ã©ã¹ã¯ããã¾ããã + </para> + <para> + ã¯ã©ã¹<classname>DomDocumentType</classname>ã®ã¡ã½ãããåç §ä¸ã + ãã + </para> + </refsect1> + </refentry> + + <refentry id="function.DomDocument-document-element"> + <refnamediv> + <refname>DomDocument->document_element</refname> + <refpurpose> + ã«ã¼ãã¨ã¬ã¡ã³ããã¼ããè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</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. + <example> + <title>Retrieving root element</title> + <programlisting role="php"> +<![CDATA[ +<?php +include("example.inc"); + +if(!$dom = domxml_open_mem($xmlstr)) { + echo "Error while parsing the document\n"; + exit; +} + +$root = $dom->document_element(); +print_r($root); +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + </refentry> + + <refentry id="function.DomDocument-create-element"> + <refnamediv> + <refname>DomDocument->create_element</refname> + <refpurpose> + æ°è¦ã¨ã¬ã¡ã³ããã¼ãã使ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>DomDocument->create_element</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + </methodsynopsis> + <para> + This function returns a new instance of class + <classname>DomElement</classname>. The tag name of the element 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>. + </para> + <para> + The return value is false if an error occured. + </para> + <para> + See also <function>DomNode_append_child</function>, + <function>DomDocument_create_text</function>, + <function>DomDocument_create_comment</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> + + <refentry id="function.DomDocument-create-text-node"> + <refnamediv> + <refname>DomDocument->create_text_node</refname> + <refpurpose> + æ°è¦ããã¹ããã¼ãã使ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</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>. + </para> + <para> + The return value is false if an error occured. + </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>. + </para> + </refsect1> + </refentry> + + <refentry id="function.DomDocument-create-comment"> + <refnamediv> + <refname>DomDocument->create_comment</refname> + <refpurpose> + æ°è¦ã³ã¡ã³ããã¼ãã使ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>DomDocument->create_comment</methodname> + <methodparam><type>string</type><parameter>content</parameter></methodparam> + </methodsynopsis> + <para> + This function returns a new instance of class + <classname>DomComment</classname>. The content of the comment 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>. + </para> + <para> + The return value is false if an error occured. + </para> + <para> + See also <function>DomNode_append_child</function>, + <function>DomDocument_create_element</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> + + <refentry id="function.DomDocument-create-cdata-section"> + <refnamediv> + <refname>DomDocument->create_cdata_section</refname> + <refpurpose> + æ°è¦cdataãã¼ãã使ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>string</type><methodname>DomDocument->create_cdata_section</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 cdata 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>. + </para> + <para> + The return value is false if an error occured. + </para> + <para> + See also <function>DomNode_append_child</function>, + <function>DomDocument_create_element</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> + + <refentry id="function.DomDocument-create-processing-instruction"> + <refnamediv> + <refname>DomDocument->create_processing_instruction</refname> + <refpurpose> + æ°è¦PIãã¼ãã使ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>string</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>. + </para> + <para> + The return value is false if an error occured. + </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>. + </para> + </refsect1> + </refentry> + + <refentry id="function.DomDocument-create-attribute"> + <refnamediv> + <refname>DomDocument->create_attribute</refname> + <refpurpose> + æ°è¦å±æ§ã使ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>DomDocument->create_attribute</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + <methodparam><type>string</type><parameter>value</parameter></methodparam> + </methodsynopsis> + <para> + This function returns a new instance of class + <classname>DomAttribute</classname>. The name of the attribute is the + value of the first parameter. The value of the attribute is the value of + the second parameter. This node will not show up in the + document unless it is inserted with e.g. + <function>DomNode_append_child</function>. + </para> + <para> + The return value is false if an error occured. + </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_entity_reference</function>, + <function>DomNode_insert_before</function>. + </para> + </refsect1> + </refentry> + + <refentry id="function.DomDocument-create-entity-reference"> + <refnamediv> + <refname>DomDocument->create_entity_reference</refname> + <refpurpose> + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</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>. + </para> + <para> + The return value is false if an error occured. + </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>. + </para> + </refsect1> + </refentry> + + <refentry id="function.DomDocument-get-elements-by-tagname"> + <refnamediv> + <refname>DomDocument->get_elements_by_tagname</refname> + <refpurpose> + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>array</type><methodname>DomDocument->get_elements_by_tagname</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + </methodsynopsis> + <para> + </para> + <para> + <function>DomDocument_add_root</function>ãåç §ä¸ããã + </para> + </refsect1> + </refentry> - <!-- class Dtd - --> + <refentry id="function.DomDocument-get-element-by-id"> + <refnamediv> + <refname>DomDocument->get_element_by_id</refname> + <refpurpose> + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>DomDocument->get_element_by_id</methodname> + <methodparam><type>string</type><parameter>id</parameter></methodparam> + </methodsynopsis> + <para> + </para> + <para> + <function>DomDocument_add_root</function>ãåç §ä¸ããã + </para> + </refsect1> + </refentry> + + <!-- End of class DomDocument --> + + <refentry id="function.DomDocument-add-root"> + <refnamediv> + <refname>DomDocument->add_root [deprecated]</refname> + <refpurpose> + ã«ã¼ããã¼ãã追å ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>resource</type><methodname>DomDocument->add_root</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + </methodsynopsis> + &warn.experimental.func; + <para> + Adds a root element node to a dom document and returns the new node. + The element name is given in the passed parameter. + </para> + <para> + <example> + <title>Creating a simple HTML document header</title> + <programlisting role="php"> +<![CDATA[ +<?php +$doc = domxml_new_doc("1.0"); +$root = $doc->add_root("HTML"); +$head = $root->new_child("HEAD", ""); +$head->new_child("TITLE", "Hier der Titel"); +echo htmlentities($doc->dump_mem()); +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + </refentry> + + <refentry id="function.DomDocument-dump-mem"> + <refnamediv> + <refname>DomDocument->dump_mem</refname> + <refpurpose> + å é¨XMLããªã¼ãæååã«ãã³ããã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>string</type><methodname>DomDocument->dump_mem</methodname> + <methodparam choice="opt"><type>bool</type><parameter>format</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. + </para> + <para> + <example> + <title>Creating a simple HTML document header</title> + <programlisting role="php"> +<![CDATA[ +<?php +$doc = domxml_new_doc("1.0"); +$root = $doc->create_element("HTML"); +$root = $doc->append_child($root); +$head = $doc->create_element("HEAD"); +$head = $root->append_child($head); +$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->dump_mem(true)); +echo "</PRE>"; +?> +]]> + </programlisting> + </example> + </para> + <note> + <para> + The first parameter was added in PHP 4.3.0. + </para> + </note> + <para> + See also <function>DomDocument_dump_file</function>, + <function>DomDocument_html_dump_mem</function>. + </para> + </refsect1> + </refentry> + + <refentry id="function.DomDocument-dump-file"> + <refnamediv> + <refname>DomDocument->dump_file</refname> + <refpurpose> + å é¨XMLããªã¼ããã¡ã¤ã«ã«ãã³ããã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>string</type><methodname>DomDocument->dump_file</methodname> + <methodparam><type>string</type><parameter>filename</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>compressionmode</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>format</parameter></methodparam> + </methodsynopsis> + <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. The first parameter specifies the name of the + filename and the second parameter, whether it should be compressed or not. + </para> + <para> + <example> + <title>Creating a simple HTML document header</title> + <programlisting role="php"> +<![CDATA[ +<?php +$doc = domxml_new_doc("1.0"); +$root = $doc->create_element("HTML"); +$root = $doc->append_child($root); +$head = $doc->create_element("HEAD"); +$head = $root->append_child($head); +$title = $doc->create_element("TITLE"); +$title = $head->append_child($title); +$text = $doc->create_text_node("This is the title"); +$text = $title->append_child($text); +$doc->dump_file("/tmp/test.xml", false, true); +?> +]]> + </programlisting> + </example> + </para> + <para> + See also <function>DomDocument_dump_mem</function> + <function>DomDocument_html_dump_mem</function>. + </para> + </refsect1> + </refentry> + + <refentry id="function.DomDocument-html-dump-mem"> + <refnamediv> + <refname>DomDocument->html_dump_mem</refname> + <refpurpose> + HTMLã¨ãã¦æååã«å é¨XMLããªã¼ããã³ããã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <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. + </para> + <para> + <example> + <title>Creating a simple HTML document header</title> + <programlisting role="php"> +<![CDATA[ +<?php +$doc = domxml_new_doc("1.0"); +$root = $doc->create_element("HTML"); +$root = $doc->append_child($root); +$head = $doc->create_element("HEAD"); +$head = $root->append_child($head); +$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>"; +?> +]]> + </programlisting> + </example> + </para> + <para> + See also <function>DomDocument_dump_file</function>, + <function>DomDocument_html_dump_mem</function>. + </para> + </refsect1> + </refentry> + + <!-- Start of class DomElement --> + + <refentry id='function.DomElement-tagname'> + <refnamediv> + <refname>DomElement->tagname</refname> + <refpurpose> + è¦ç´ åãè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>string</type><methodname>DomElement->tagname</methodname> + <void/> + </methodsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.DomElement-get-attribute'> + <refnamediv> + <refname>DomElement->get_attribute</refname> + <refpurpose> + 屿§ã®å¤ãè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>DomElement->get_attribute</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + </methodsynopsis> + <para> + Returns the attribute with name <parameter>name</parameter> of the + current node. + </para> + <para> + See also <function>DomElement_set_attribute</function> + </para> + </refsect1> + </refentry> + + <refentry id='function.DomElement-set-attribute'> + <refnamediv> + <refname>DomElement->set_attribute</refname> + <refpurpose> + æ°è¦å±æ§ã追å ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>bool</type><methodname>DomElement->set_attribute</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + <methodparam><type>string</type><parameter>value</parameter></methodparam> + </methodsynopsis> + <para> + Sets an attribute with name <parameter>name</parameter> ot the given + value. If the attribute does not exist, it will be created. + </para> + <para> + <example> + <title>屿§ãè¨å®ãã</title> + <programlisting role="php"> +<![CDATA[ +<?php +$doc = domxml_new_doc("1.0"); +$node = $doc->create_element("para"); +$newnode = $doc->append_child($node); +$newnode->set_attribute("align", "left"); +?> +]]> + </programlisting> + </example> + </para> + <para> + <function>DomElement_get_attribute</function>ãåç §ããã + </para> + </refsect1> + </refentry> + + <refentry id='function.DomElement-get-attribute-node'> + <refnamediv> + <refname>DomElement->get_attribute_node</refname> + <refpurpose> + 屿§ã®å¤ãè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>DomElement->get_attribute_node</methodname> + <methodparam><type>object</type><parameter>attr</parameter></methodparam> + </methodsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.DomElement-set-attribute-node'> + <refnamediv> + <refname>DomElement->set_attribute_node</refname> + <refpurpose> + æ°è¦å±æ§ãè¨å®ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>bool</type><methodname>DomElement->set_attribute_node</methodname> + <methodparam><type>object</type><parameter>attr</parameter></methodparam> + </methodsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.DomElement-remove-attribute'> + <refnamediv> + <refname>DomElement->remove_attribute</refname> + <refpurpose> + 屿§ãåé¤ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>bool</type><methodname>DomElement->remove_attribute</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + </methodsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.DomElement-get-elements-by-tagname'> + <refnamediv> + <refname>DomElement->get_elements_by_tagname</refname> + <refpurpose> + ã¿ã°åã«ããè¦ç´ ãåå¾ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>bool</type><methodname>DomElement->get_elements_by_tagname</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + </methodsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.DomElement-has-attribute'> + <refnamediv> + <refname>DomElement->has_attribute</refname> + <refpurpose> + 屿§ããããã©ããã調ã¹ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>bool</type><methodname>DomElement->has_attribute</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + </methodsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <!-- End of class DomElement --> + + <!-- Start of class DomNode --> + + <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> + + <refentry id='function.DomNode-node-name'> + <refnamediv> + <refname>DomNode->node_name</refname> + <refpurpose> + ãã¼ãåãè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>string</type><methodname>DomNode->node_name</methodname> + <void/> + </methodsynopsis> + <para> + Returns name of the node. The name has different meanings + for the different types of nodes as illustrated in the following table. + <table> + <title>Meaning of value</title> + <tgroup cols="2"> + <thead> + <row> + <entry>Type</entry> + <entry>Meaning</entry> + </row> + </thead> + <tbody> + <row> + <entry>DomAttribute</entry> + <entry>value of attribute</entry> + </row> + <row> + <entry>DomAttribute</entry> + <entry></entry> + </row> + <row> + <entry>DomCDataSection</entry> + <entry>#cdata-section</entry> + </row> + <row> + <entry>DomComment</entry> + <entry>#comment</entry> + </row> + <row> + <entry>DomDocument</entry> + <entry>#document</entry> + </row> + <row> + <entry>DomDocumentType</entry> + <entry>document type name</entry> + </row> + <row> + <entry>DomElement</entry> + <entry>tag name</entry> + </row> + <row> + <entry>DomEntity</entry> + <entry>name of entity</entry> + </row> + <row> + <entry>DomEntityReference</entry> + <entry>name of entity reference</entry> + </row> + <row> + <entry>DomNotation</entry> + <entry>notation name</entry> + </row> + <row> + <entry>DomProcessingInstruction</entry> + <entry>target</entry> + </row> + <row> + <entry>DomText</entry> + <entry>#text</entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </refsect1> + </refentry> + + <refentry id='function.DomNode-node-value'> + <refnamediv> + <refname>DomNode->node_value</refname> + <refpurpose> + ãã¼ãã®å¤ãè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>string</type><methodname>DomNode->node_value</methodname> + <void/> + </methodsynopsis> + <para> + Returns value of the node. The value has different meanings + for the different types of nodes as illustrated in the following table. + <table> + <title>Meaning of value</title> + <tgroup cols="2"> + <thead> + <row> + <entry>Type</entry> + <entry>Meaning</entry> + </row> + </thead> + <tbody> + <row> + <entry>DomAttribute</entry> + <entry>value of attribute</entry> + </row> + <row> + <entry>DomAttribute</entry> + <entry></entry> + </row> + <row> + <entry>DomCDataSection</entry> + <entry>content</entry> + </row> + <row> + <entry>DomComment</entry> + <entry>content of comment</entry> + </row> + <row> + <entry>DomDocument</entry> + <entry>null</entry> + </row> + <row> + <entry>DomDocumentType</entry> + <entry>null</entry> + </row> + <row> + <entry>DomElement</entry> + <entry>null</entry> + </row> + <row> + <entry>DomEntity</entry> + <entry>null</entry> + </row> + <row> + <entry>DomEntityReference</entry> + <entry>null</entry> + </row> + <row> + <entry>DomNotation</entry> + <entry>null</entry> + </row> + <row> + <entry>DomProcessingInstruction</entry> + <entry>entire content without target</entry> + </row> + <row> + <entry>DomText</entry> + <entry>content of text</entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </refsect1> + </refentry> + + <refentry id='function.DomNode-node-type'> + <refnamediv> + <refname>DomNode->node_type</refname> + <refpurpose> + ãã¼ãã®åãè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>int</type><methodname>DomNode->node_type</methodname> + <void/> + </methodsynopsis> + <para> + Returns the type of the node. All possible types are listed in + the table in the introduction. + </para> + </refsect1> + </refentry> + + <refentry id='function.DomNode-last-child'> + <refnamediv> + <refname>DomNode->last_child</refname> + <refpurpose> + æå¾ã®åãã¼ããè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>DomNode->last_child</methodname> + <void/> + </methodsynopsis> + <para> + Returns the last child of the node. + </para> + <para> + See also <function>DomNode_first_child</function>, + <function>DomNode_next_sibling</function>, + <function>DomNode_previous_sibling</function>. + </para> + </refsect1> + </refentry> + + <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> + + <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> + + <refentry id='function.DomNode-previous-sibling'> + <refnamediv> + <refname>DomNode->previous_sibling</refname> + <refpurpose> + åã®å å¼ãã¼ããè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>DomNode->previous_sibling</methodname> + <void/> + </methodsynopsis> + <para> + This function returns the previous sibling of the current node. + </para> + <para> + See also <function>DomNode_next_sibling</function>. + </para> + </refsect1> + </refentry> + + <refentry id='function.DomNode-next-sibling'> + <refnamediv> + <refname>DomNode->next_sibling</refname> + <refpurpose> + 次ã®å å¼ãã¼ããè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>DomNode->next_sibling</methodname> + <void/> + </methodsynopsis> + <para> + This function returns the next sibling of the current node. If there is + no next sibling it returns false. You can use this function to iterate + over all children of a node as shown in the example. + </para> + <para> + <example> + <title>Iterate over children</title> + <programlisting role="php"> +<![CDATA[ +<?php +include("example.inc"); + +if(!$dom = domxml_open_mem($xmlstr)) { + echo "Error while parsing the document\n"; + exit; +} + +$elements = $dom->get_elements_by_tagname("tbody"); +$element = $elements[0]; +$child = $element->first_child(); + +while($child) { + print_r($child); + $child = $child->next_sibling(); +} +?> +]]> + </programlisting> + </example> + </para> + <para> + See also <function>DomNode_previous_sibling</function>. + </para> + </refsect1> + </refentry> + + <refentry id='function.DomNode-parent-node'> + <refnamediv> + <refname>DomNode->parent_node</refname> + <refpurpose> + 親ãã¼ããè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>DomNode->parent_node</methodname> + <void/> + </methodsynopsis> + <para> + This function returns the parent node. + </para> + <para> + The following example will show two identical lists of children. + <example> + <title>Finding the document of a node</title> + <programlisting role="php"> +<![CDATA[ +<?php +$doc = domxml_new_doc("1.0"); +$node = $doc->create_element("para"); +$node = $doc->append_child($node); +$children = $doc->children(); +print_r($children); + +$doc2 = $node->parent_node(); +$children = $doc2->children(); +print_r($children); +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + </refentry> + + <refentry id='function.DomNode-owner-document'> + <refnamediv> + <refname>DomNode->owner_document</refname> + <refpurpose> + ãã®ãã¼ããå±ããããã¥ã¡ã³ããè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>DomNode->owner_document</methodname> + <void/> + </methodsynopsis> + <para> + This function returns the document the current node belongs to. + </para> + <para> + The following example will create two identical lists of children. + <example> + <title>Finding the document of a node</title> + <programlisting role="php"> +<![CDATA[ +<?php +$doc = domxml_new_doc("1.0"); +$node = $doc->create_element("para"); +$node = $doc->append_child($node); +$children = $doc->children(); +print_r($children); + +$doc2 = $node->owner_document(); +$children = $doc2->children(); +print_r($children); +?> +]]> + </programlisting> + </example> + </para> + <para> + See also <function>DomNode_insert_before</function>. + </para> + </refsect1> + </refentry> + + <refentry id='function.DomNode-insert-before'> + <refnamediv> + <refname>DomNode->insert_before</refname> + <refpurpose> + æ°è¦ãã¼ããåãã¼ãã¨ãã¦æ¿å ¥ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>DomNode->insert_before</methodname> + <methodparam><type>object</type><parameter>newnode</parameter></methodparam> + <methodparam><type>object</type><parameter>refnode</parameter></methodparam> + </methodsynopsis> + <para> + This function inserts the new node <parameter>newnode</parameter> right + before the node <parameter>refnode</parameter>. The return value is the + inserted node. If you plan to do further modifications on the appended + child you must use the returned node. + </para> + <para> + <function>DomNode_insert_before</function> is very similar to + <function>DomNode_append_child</function> as the following example shows + which does the same as the example at + <function>DomNode_append_child</function>. + </para> + <para> + <example> + <title>Adding a child</title> + <programlisting role="php"> +<![CDATA[ +include("example.inc"); + +if(!$dom = domxml_open_mem($xmlstr)) { + echo "Error while parsing the document\n"; + exit; +} + +$elements = $dom->get_elements_by_tagname("informaltable"); +print_r($elements); +$element = $elements[0]; + +$newnode = $element->insert_before($element, $element); +$children = $newnode->children(); +$attr = $children[1]->set_attribute("align", "left"); + +echo "<PRE>"; +$xmlfile = $dom->dump_mem(); +echo htmlentities($xmlfile); +echo "</PRE>"; +]]> + </programlisting> + </example> + </para> + <para> + See also <function>DomNode_append_child</function>. + </para> + </refsect1> + </refentry> + + <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"> +<![CDATA[ +<?php +$doc = domxml_new_doc("1.0"); +$node = $doc->create_element("para"); +$newnode = $doc->append_child($node); +$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"> +<![CDATA[ +<?php +$doc = domxml_new_doc("1.0"); +$node = $doc->create_element("para"); +$node->set_attribute("align", "left"); +$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"> +<![CDATA[ +<?php +include("example.inc"); + +if(!$dom = domxml_open_mem($xmlstr)) { + echo "Error while parsing the document\n"; + exit; +} + +$elements = $dom->get_elements_by_tagname("informaltable"); +print_r($elements); +$element = $elements[0]; + +$parent = $element->parent_node(); +$newnode = $parent->append_child($element); +$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> + + <refentry id='function.DomNode-remove-child'> + <refnamediv> + <refname>DomNode->remove_child</refname> + <refpurpose> + åãã¼ãã®ãªã¹ãããåãã¼ããåé¤ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>DomNode->remove_child</methodname> + <methodparam><type>object</type><parameter>oldchild</parameter></methodparam> + </methodsynopsis> + <para> + This functions removes a child from a list of children. If child cannot + be removed or is not a child the function will return false. + If the child could be removed the functions returns the old child. + </para> + <para> + <example> + <title>Removing a child</title> + <programlisting role="php"> +<![CDATA[ +<?php +include("example.inc"); + +if(!$dom = domxml_open_mem($xmlstr)) { + echo "Error while parsing the document\n"; + exit; +} + +$elements = $dom->get_elements_by_tagname("tbody"); +$element = $elements[0]; +$children = $element->child_nodes(); +$child = $element->remove_child($children[0]); + +echo "<PRE>"; +$xmlfile = $dom->dump_mem(true); +echo htmlentities($xmlfile); +echo "</PRE>"; +?> +]]> + </programlisting> + </example> + </para> + <para> + See also <function>DomNode_append_child</function>. + </para> + </refsect1> + </refentry> + + <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> + + <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> - <refentry id="function.xmldoc"> + <refentry id='function.DomNode-prefix'> <refnamediv> - <refname>xmldoc</refname> - <refpurpose>XMLããã¥ã¡ã³ãã®DOMãªãã¸ã§ã¯ãã使ãã</refpurpose> + <refname>DomNode->prefix</refname> + <refpurpose> + ãã¼ãã®ååç©ºéæ¥é è¾ãè¿ã + </refpurpose> </refnamediv> <refsect1> <title>説æ</title> - <methodsynopsis> - <type>object</type><methodname>xmldoc</methodname> - <methodparam><type>string</type><parameter>str</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>string</type><methodname>DomNode->prefix</methodname> + <void/> + </methodsynopsis> <para> - ãã®é¢æ°ã¯ã<parameter>str</parameter>ã®XMLããã¥ã¡ã³ããå¦çãã - ã¯ã©ã¹"Dom document"ã®ãªãã¸ã§ã¯ããè¿ãã¾ãããã®ãªãã¸ã§ã¯ã㯠- ä¸ã®ãªã¹ãã«ç¤ºããããããã£ãæãã¦ãã¾ãã + Returns the name space prefix of the node. </para> - <simpara> - <function>xmldocfile</function>ãåç §ä¸ããã - </simpara> </refsect1> </refentry> - <refentry id="function.xmldocfile"> + <refentry id='function.DomNode-clone-node'> <refnamediv> - <refname>xmldocfile</refname> - <refpurpose>XMLãã¡ã¤ã«ããDOMãªãã¸ã§ã¯ãã使ãã</refpurpose> + <refname>DomNode->clone_node</refname> + <refpurpose> + ãã¼ãã®è¤è£½ãä½ã + </refpurpose> </refnamediv> <refsect1> <title>説æ</title> - <methodsynopsis> - <type>object</type><methodname>xmldocfile</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>object</type><methodname>DomNode->clone_node</methodname> + <void/> + </methodsynopsis> <para> - ãã®é¢æ°ã¯ã<parameter>filename</parameter>ã¨ããååã®XMLãã㥠- ã¡ã³ããè§£éããã¯ã©ã¹"Dom document"ã®ãªãã¸ã§ã¯ããè¿ãã¾ãã - ã¯ã©ã¹"Dom document"ã®ãªãã¸ã§ã¯ããè¿ãã¾ãããã®ãªãã¸ã§ã¯ã㯠- ä¸ã®ãªã¹ãã«ç¤ºããããããã£ãæãã¦ãã¾ãããã¡ã¤ã«ã¯èªã¿è¾¼ã¿ã® - ã¿å¯è½ã§ãã + &warn.undocumented.func; </para> - <simpara> - <function>xmldoc</function>ãåç §ä¸ããã - </simpara> </refsect1> </refentry> - <refentry id="function.xmltree"> + <refentry id='function.DomNode-unlink-node'> <refnamediv> - <refname>xmltree</refname> + <refname>DomNode->unlink_node</refname> <refpurpose> - XMLããã¥ã¡ã³ãããPHPãªãã¸ã§ã¯ãã®ããªã¼ã使ãã + ãã¼ããåé¤ãã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> - <methodsynopsis> - <type>object</type><methodname>xmltree</methodname> - <methodparam><type>string</type><parameter>str</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>object</type><methodname>DomNode->unlink_node</methodname> + <void/> + </methodsynopsis> <para> - ãã®é¢æ°ã¯ã<parameter>str</parameter>ã®XMLããã¥ã¡ã³ãããã¼ã¹ãã - ãã¼ã¹æ¸ã®ããã¥ã¡ã³ãã¨ãã¦PHPãªãã¸ã§ã¯ãã®ããªã¼ãè¿ãã¾ããä» - ã®é¢æ°ã¯ãã®ããªã¼ã«ã¯ã¢ã¯ã»ã¹ã§ããªãããããã®é¢æ°ã¯ä»ã®é¢æ°ã¨ - ç°ãªã£ã¦ãã¾ããä¾ãã°ãã¼ãã追å ããæã®ããã«ããã®ããªã¼ãä¿® - æ£ãããã¨ã«ã¯ãç¾å¨XMLãã¡ã¤ã«ã¨ãã¦ããªã¼ããã³ãããææ®µããªã - ããæå³ãããã¾ããããã®é¢æ°ã¯ããã¡ã¤ã«ãèªã¿è¾¼ãã§å®æ°ã調㹠- ããå ´åã«ã¯æç¨ã§ãã + &warn.undocumented.func; </para> </refsect1> </refentry> - <refentry id="function.domxml-root"> + <refentry id='function.DomNode-replace-node'> <refnamediv> - <refname>domxml_root</refname> + <refname>DomNode->replace_node</refname> <refpurpose> - ããã¥ã¡ã³ãã®ã«ã¼ããã¼ããè¿ã + ãã¼ããç½®æãã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> - <methodsynopsis> - <type>object</type><methodname>domxml_root</methodname> - <methodparam><type>object</type><parameter>doc</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>object</type><methodname>DomNode->replace_node</methodname> + <void/> + </methodsynopsis> <para> - <function>domxml_root</function> ã¯å¼æ°ã¨ãã¦ã¯ã©ã¹ã®ãªãã¸ã§ã¯ã - "Dom document"ãã¨ããã«ã¼ãè¦ç´ ãã¼ããè¿ãã¾ããç¾å¨ãã³ã¡ã³ã - ã®ãããªä»ã®ãã¼ãã¯ç¡è¦ããã¾ãã + &warn.undocumented.func; </para> - <para> - 以ä¸ã®ä¾ã¯ãåå CHAPTER ã§è¦ç´ ãæããè¦ç´ ã ããè¿ãããããåºå - ãã¾ãããã®ä»ã®ã«ã¼ããã¼ãã§ããã³ã¡ã³ãã¯è¿ããã¾ããã - <example> - <title>ã«ã¼ãè¦ç´ ãåå¾ãã</title> - <programlisting role="php"> -<![CDATA[ -<?php -$xmlstr = "<?xml version='1.0' standalone='yes'?> -<!DOCTYPE chapter SYSTEM '/share/sgml/Norman_Walsh/db3xml10/db3xml10.dtd' -[ <!ENTITY sp \"spanish\"> -]> -<!-- lsfj --> -<chapter language='en'><title language='en'>Title</title> - <para language='ge'> - &sp; - <!-- comment --> - <informaltable language='&sp;'> - <tgroup cols='3'> - <tbody> - <row><entry>a1</entry><entry -morerows='1'>b1</entry><entry>c1</entry></row> -<row><entry>a2</entry><entry>c2</entry></row> - <row><entry>a3</entry><entry>b3</entry><entry>c3</entry></row> - </tbody> - </tgroup> - </informaltable> - </para> -</chapter>"; + </refsect1> + </refentry> -if(!$dom = xmldoc($xmlstr)) { - echo "Error while parsing the document\n"; - exit; -} + <refentry id='function.DomNode-set-content'> + <refnamediv> + <refname>DomNode->set_content</refname> + <refpurpose> + ãã¼ãã®ã³ã³ãã³ããè¨å®ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>bool</type><methodname>DomNode->set_content</methodname> + <void/> + </methodsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> -$root = $dom->root(); -/* or $root = domxml_root($dom); */ -print_r($root); -?> -]]> - </programlisting> - </example> + <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> - <refentry id="function.domxml-add-root"> + <refentry id='function.DomNode-dump-node'> <refnamediv> - <refname>domxml_add_root</refname> + <refname>DomNode->dump_node</refname> <refpurpose> - ããã¥ã¡ã³ãã«ã«ã¼ããã¼ãã追å ãã + ãã¼ããï¼ã¤ãã³ããã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> - <methodsynopsis> - <type>resource</type><methodname>domxml_add_root</methodname> - <methodparam><type>resource</type><parameter>doc</parameter></methodparam> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>string</type><methodname>DomNode->dump_node</methodname> + <void/> + </methodsynopsis> <para> - DOMããã¥ã¡ã³ãã«ã«ã¼ãè¦ç´ ãã¼ãã追å ããæ°è¦ãã¼ããè¿ãã¾ãã - è¦ç´ åã¯ã2çªç®ã®å¼æ°ã¨ãã¦æå®ãã¾ãã + &warn.undocumented.func; </para> <para> - <example> - <title>ç°¡åãªHTMLããã¥ã¡ã³ããããã使ãã</title> - <programlisting role="php"> -<![CDATA[ -<?php -$doc = new_xmldoc("1.0"); -$root = $doc->add_root("HTML"); -$head = $root->new_child("HEAD", ""); -$head->new_child("TITLE", "Hier der Titel"); -echo $doc->dumpmem(); -?> -]]> - </programlisting> - </example> + See also <function>DomDocument_dump_mem</function>. </para> </refsect1> </refentry> - <refentry id="function.domxml-dumpmem"> + <refentry id='function.DomNode-set-name'> <refnamediv> - <refname>domxml_dumpmem</refname> + <refname>DomNode->set_name</refname> <refpurpose> - ããã¥ã¡ã³ããæååã«ãã³ããã + ãã¼ãã®ååãè¨å®ãã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> - <methodsynopsis> - <type>string</type><methodname>domxml_dumpmem</methodname> - <methodparam><type>resource</type><parameter>doc</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>bool</type><methodname>DomNode->set_name</methodname> + <void/> + </methodsynopsis> <para> - DOM表ç¾ããXMLããã¥ã¡ã³ãã使ãã¾ãããã®é¢æ°ã¯ãé常ã - <function>domxml_add_root</function> ã®ä¾ã®ããã«æåããæ°è¦ã« - DOMããã¥ã¡ã³ããæ§ç¯ããå¾ã«ã³ã¼ã«ããã¾ãã + Sets name of node. </para> <para> - <function>domxml_add_root</function>ãåç §ä¸ããã + See also <function>DomNode_node_name</function>. </para> </refsect1> </refentry> - <refentry id="function.domxml-attributes"> + <refentry id='function.DomNode-is-blank-node'> <refnamediv> - <refname>domxml_attributes</refname> + <refname>DomNode->is_blank_node</refname> <refpurpose> - æå®ãããã¼ãã®å±æ§ã®ãªã¹ããè¿ã + ãã¼ãã空ãã©ãã調ã¹ã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> - <methodsynopsis> - <type>array</type><methodname>domxml_attributes</methodname> - <methodparam><type>resource</type><parameter>node</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>bool</type><methodname>DomNode->is_blank_node</methodname> + <void/> + </methodsynopsis> <para> - "dom attribute"åã®ãªãã¸ã§ã¯ãã®é åã¨ãã¦ãã¼ãã®å ¨ã¦ã®å±æ§ãè¿ - ãã¾ãã + &warn.undocumented.func; </para> </refsect1> </refentry> - <refentry id="function.domxml-get-attribute"> + <!-- End of class DomNode --> + + <!-- Start of class DomAttribute --> + + <refentry id='function.DomAttribute-name'> <refnamediv> - <refname>domxml_get_attribute</refname> + <refname>DomAttribute->name</refname> <refpurpose> - æå®ãããã¼ãã®å±æ§ã®å¤ãè¿ã + 屿§ã®ååãè¿ã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> - <methodsynopsis> - <type>object</type><methodname>domxml_get_attribute</methodname> - <methodparam><type>resource</type><parameter>node</parameter></methodparam> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>bool</type><methodname>DomAttribute->name</methodname> + <void/> + </methodsynopsis> <para> - ãã®é¢æ°ã¯ãæå®ããåå<parameter>name</parameter>ã®å¤ãè¿ãã¾ãã + This function returns the name of the attribute. + </para> + <para> + See also <function>DomAttribute_value</function>. </para> - <simpara> - <function>domxml_set_attribute</function>ãåç §ä¸ããã - </simpara> </refsect1> </refentry> - <refentry id="function.domxml-set-attribute"> + <refentry id='function.DomAttribute-value'> <refnamediv> - <refname>domxml_set_attribute</refname> + <refname>DomAttribute->value</refname> <refpurpose> - æå®ãã屿§ã®å¤ãè¨å®ãã + 屿§ã®å¤ãè¿ã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> - <methodsynopsis> - <type>object</type><methodname>domxml_set_attribute</methodname> - <methodparam><type>resource</type><parameter>node</parameter></methodparam> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>string</type><parameter>value</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>bool</type><methodname>DomAttribute->value</methodname> + <void/> + </methodsynopsis> <para> - æå®ãããã¼ãã®åå <parameter>name</parameter> ãæãã屿§ã«å¤ - ãè¨å®ãã¾ãã + This function returns the value of the attribute. </para> <para> - <function>domxml_add_root</function> ãä¾ã«ã¨ãã¨ããã®ä¾ã§ã¯ãã¼ - ãã®ã¯ã©ã¹ã®é¢æ° <function>set_attribute</function> ãåã«ã³ã¼ã« - ãããã¨ã«ãããHEADè¦ç´ ã«å±æ§ã追å ãã¦ãã¾ãã - <example> - <title>è¦ç´ ã«å±æ§ã追å ãã</title> - <programlisting role="php"> -<![CDATA[ -<?php -$doc = new_xmldoc("1.0"); -$root = $doc->add_root("HTML"); -$head = $root->new_child("HEAD", ""); -$head->new_child("TITLE", "Hier der Titel"); -$head->set_attribute("Language", "ge"); -echo $doc->dumpmem(); -?> -]]> - </programlisting> - </example> + See also <function>DomAttribute_name</function>. </para> </refsect1> </refentry> - <refentry id="function.domxml-children"> + <refentry id='function.DomAttribute-specified'> <refnamediv> - <refname>domxml_children</refname> + <refname>DomAttribute->specified</refname> <refpurpose> - åãã¼ãã®ãªã¹ããè¿ã + 屿§ãæå®ããã¦ãããã©ãã調ã¹ã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> - <methodsynopsis> - <type>array</type><methodname>domxml_children</methodname> - <methodparam><type>object</type><parameter>doc|node</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>bool</type><methodname>DomAttribute->specified</methodname> + <void/> + </methodsynopsis> <para> - ãã¼ãã®é åã¨ãã¦ãã¼ãã®å ¨ã¦ã®åãã¼ããè¿ãã¾ãã - </para> - <para> - 以ä¸ã®ä¾ã§ã¯ã夿° <varname>children</varname> ã«ã¯ XML_ELEMENT - åã®ãã¼ãã®ä¸ã¤ãæããé åãå«ã¾ãã¾ãããã®ãã¼ãã¯TITLEè¦ç´ ã§ - ãã - <example> - <title>è¦ç´ ã«å±æ§ã追å ãã</title> - <programlisting role="php"> -<![CDATA[ -<?php -$doc = new_xmldoc("1.0"); -$root = $doc->add_root("HTML"); -$head = $root->new_child("HEAD", ""); -$head->new_child("TITLE", "Hier der Titel"); -$head->set_attribute("Language", "ge"); -$children = $head->children(); -?> -]]> - </programlisting> - </example> + Check DOM standard for a detailed explanation. </para> </refsect1> </refentry> - <refentry id="function.domxml-new-child"> + <!-- End of class DomAttribute --> + + <!-- Start of class DomDocumentType --> + + <refentry id='function.DomDocumentType-name'> <refnamediv> - <refname>domxml_new_child</refname> + <refname>DomDocumentType->name</refname> <refpurpose> - 親ãã¼ãã«åãã¼ãã追å ãã + ããã¥ã¡ã³ãã®ååãè¿ã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> - <methodsynopsis> - <type>resource</type><methodname>domxml_new_child</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>string</type><parameter>content</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>string</type><methodname>DomDocumentType->name</methodname> + <void/> + </methodsynopsis> <para> - ãã¼ãã«æ°è¦ã«åãã¼ãã追å ããè¿ãã¾ãã + This function returns the name of the document type. </para> </refsect1> </refentry> - <refentry id="function.domxml-new-xmldoc"> + <refentry id='function.DomDocumentType-entities'> <refnamediv> - <refname>domxml_new_xmldoc</refname> + <refname>DomDocumentType->entities</refname> <refpurpose> - æ°è¦ã«ç©ºã®ããã¥ã¡ã³ãã使ãã + ã¨ã³ããªã®ãªã¹ãè¿ã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> - <methodsynopsis> - <type>object</type><methodname>domxml_new_xmldoc</methodname> - <methodparam><type>string</type><parameter>version</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>array</type><methodname>DomDocumentType->entities</methodname> + <void/> + </methodsynopsis> <para> - æåããæ°è¦DOMããã¥ã¡ã³ãã使ããè¿ãã¾ãã + &warn.undocumented.func; </para> + </refsect1> + </refentry> + + <refentry id='function.DomDocumentType-notations'> + <refnamediv> + <refname>DomDocumentType->notations</refname> + <refpurpose> + ãã¼ãã¼ã·ã§ã³ã®ãªã¹ããè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>array</type><methodname>DomDocumentType->notations</methodname> + <void/> + </methodsynopsis> <para> - <function>domxml_add_root</function>ãåç §ä¸ããã + &warn.undocumented.func; </para> </refsect1> </refentry> - <refentry id="function.xpath_new_context"> + <refentry id='function.DomDocumentType-public-id'> <refnamediv> - <refname>xpath_new_context</refname> + <refname>DomDocumentType->public_id</refname> <refpurpose> - xpath ã³ã³ããã¹ããæ°è¦ã«ä½æãã + document typeã®public IDãè¿ã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> - <methodsynopsis> - <type>object</type><methodname>xpath_new_context</methodname> - <methodparam><type>object</type><parameter>dom document</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>string</type><methodname>DomDocumentType->public_id</methodname> + <void/> + </methodsynopsis> <para> + This function returns the public id of the document type. </para> <para> - See also <function></function> + The following example echos nothing. + <example> + <title>Retrieving the public id</title> + <programlisting role="php"> +<![CDATA[ +<?php +include("example.inc"); + +if(!$dom = domxml_open_mem($xmlstr)) { + echo "Error while parsing the document\n"; + exit; +} + +$doctype = $dom->doctype(); +echo $doctype->public_id(); +?> +]]> + </programlisting> + </example> </para> </refsect1> </refentry> - <refentry id="function.xpath_eval"> + <refentry id='function.DomDocumentType-system-id'> <refnamediv> - <refname>xpath_eval</refname> + <refname>DomDocumentType->system_id</refname> <refpurpose> - xpath å¼ãè©ä¾¡ãã + document typeã®system IDãè¿ã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> - <methodsynopsis> - <type>array</type><methodname>xpath_eval</methodname> - <methodparam><type>object</type><parameter>xpath context</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>string</type><methodname>DomDocumentType->system_id</methodname> + <void/> + </methodsynopsis> <para> + Returns the system id of the document type. </para> <para> - See also <function></function> + The following example echos + '/share/sgml/Norman_Walsh/db3xml10/db3xml10.dtd'. + <example> + <title>ã·ã¹ãã IDãåå¾ãã</title> + <programlisting role="php"> +<![CDATA[ +<?php +include("example.inc"); + +if(!$dom = domxml_open_mem($xmlstr)) { + echo "Error while parsing the document\n"; + exit; +} + +$doctype = $dom->doctype(); +echo $doctype->system_id(); +?> +]]> + </programlisting> + </example> </para> </refsect1> </refentry> - <refentry id='function.domxml-node'> + <refentry id='function.DomDocumentType-internal-subset'> <refnamediv> - <refname>domxml_node</refname> - <refpurpose>ãã¼ãã使ãã</refpurpose> + <refname>DomDocumentType->internal_subset</refname> + <refpurpose> + å é¨ãµãã»ãããè¿ã + </refpurpose> </refnamediv> <refsect1> <title>説æ</title> - <methodsynopsis> - <type>object</type><methodname>domxml_node</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>bool</type><methodname>DomDocumentType->internal_subset</methodname> + <void/> + </methodsynopsis> <para> &warn.undocumented.func; </para> </refsect1> </refentry> - <refentry id='function.domxml-node-set-content'> + <!-- End of class DomDocumentType --> + + <!-- Start of class DomProcessingInstruction --> + + <refentry id='function.DomProcessingInstruction-target'> <refnamediv> - <refname>domxml_node_set_content</refname> - <refpurpose>ãã¼ãã®å 容ãè¨å®ãã</refpurpose> + <refname>DomProcessingInstruction->target</refname> + <refpurpose> + PIãã¼ãã®ã¿ã¼ã²ãããè¿ã + </refpurpose> </refnamediv> <refsect1> <title>説æ</title> - <methodsynopsis> - <type>bool</type><methodname>domxml_node_set_content</methodname> - <methodparam><type>string</type><parameter>content</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>string</type><methodname>DomProcessingInstruction->target</methodname> + <void/> + </methodsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.DomProcessingInstruction-data'> + <refnamediv> + <refname>DomProcessingInstruction->data</refname> + <refpurpose> + PIãã¼ãã®ãã¼ã¿ãè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>string</type><methodname>DomProcessingInstruction->data</methodname> + <void/> + </methodsynopsis> <para> &warn.undocumented.func; </para> </refsect1> </refentry> - <refentry id='function.domxml-node-unlink-node'> + <!-- End of class DomProcessingInstruction --> + + <!-- Start of class XPathContext --> + <!-- End of class XPathContext --> + + <refentry id="function.xpath-new-context"> <refnamediv> - <refname>domxml_node_unlink_node</refname> - <refpurpose>ãã¼ããåé¤ãã</refpurpose> + <refname>xpath_new_context</refname> + <refpurpose> + æ°è¦xpathã³ã³ããã¹ãã使ãã + </refpurpose> </refnamediv> <refsect1> <title>説æ</title> <methodsynopsis> - <type>object</type><methodname>domxml_node_unlink_node</methodname> - <void/> + <type>object</type><methodname>xpath_new_context</methodname> + <methodparam><type>object</type><parameter>dom document</parameter></methodparam> </methodsynopsis> + &warn.experimental.func; <para> - &warn.undocumented.func; + </para> + <para> + <function>xpath_eval</function>ãåç §ä¸ããã </para> </refsect1> </refentry> - <refentry id="function.xpath-eval-expression"> + <refentry id="function.xpath-eval"> <refnamediv> - <refname>xpath_eval_expression</refname> + <refname>xpath_eval</refname> <refpurpose> - æå®æååã®XPathãã±ã¼ã·ã§ã³ãã¹ãè©ä¾¡ãã + æå®ããæååã®XPathãã±ã¼ã·ã§ã³ãè©ä¾¡ãã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> <methodsynopsis> <type>array</type><methodname>xpath_eval</methodname> - <methodparam><type>object</type><parameter>xpath_context</parameter></methodparam> + <methodparam><type>object</type><parameter>xpath context</parameter></methodparam> </methodsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> </para> <para> - See also <function></function> + <function>xpath_new_context</function>ãåç §ä¸ããã </para> </refsect1> </refentry> - <refentry id='function.domxml-version'> + <refentry id="function.xpath-eval-expression"> <refnamediv> - <refname>domxml_version</refname> + <refname>xpath_eval_expression</refname> <refpurpose> - XMLã©ã¤ãã©ãªãã¼ã¸ã§ã³ãåå¾ãã + æå®ããæååã®XPathãã±ã¼ã·ã§ã³å¼ãè©ä¾¡ãã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> <methodsynopsis> - <type>string</type><methodname>domxml_version</methodname> - <void/> + <type>array</type><methodname>xpath_eval_expression</methodname> + <methodparam><type>object</type><parameter>xpath_context</parameter></methodparam> </methodsynopsis> + &warn.experimental.func; <para> - ãã®é¢æ°ã¯ãç¾å¨ä½¿ç¨ãããXMLã©ã¤ãã©ãªã®ãã¼ã¸ã§ã³ãè¿ãã¾ãã + </para> + <para> + <function>xpath_eval</function>ãåç §ä¸ãã </para> </refsect1> </refentry> @@ -924,7 +2913,7 @@ <refnamediv> <refname>xptr_new_context</refname> <refpurpose> - Create new XPath Context + æ°è¦XPathã³ã³ããã¹ãã使ãã </refpurpose> </refnamediv> <refsect1>
Index: phpdoc/ja/Translators diff -u phpdoc/ja/Translators:1.33 phpdoc/ja/Translators:1.34 --- phpdoc/ja/Translators:1.33 Tue Jan 22 09:02:27 2002 +++ phpdoc/ja/Translators Sun Apr 14 10:05:43 2002 @@ -100,7 +100,7 @@ functions/mcal.xml Rui Hirokawa functions/mcrypt.xml Rui Hirokawa functions/mhash.xml Rui Hirokawa -functions/ming.xml Rui Hirokawa +functions/ming.xml Rui Hirokawa Translating functions/misc.xml Michihide Hotta functions/mnogosearch.xml Rui Hirokawa functions/msession.xml Rui Hirokawa @@ -150,7 +150,7 @@ functions/xmlrpc.xml Rui Hirokawa functions/xslt.xml Rui Hirokawa functions/yaz.xml Rui Hirokawa -functions/zlib.xml Rui Hirokawa +functions/zlib.xml Rui Hirokawa Translating -------- language ---------------------------------------------------------- language/basic-syntax.xml Rui Hirokawa language/constants.xml Rui Hirokawa Index: phpdoc/ja/functions/domxml.xml diff -u phpdoc/ja/functions/domxml.xml:1.15 phpdoc/ja/functions/domxml.xml:1.16 --- phpdoc/ja/functions/domxml.xml:1.15 Sat Feb 2 10:44:14 2002 +++ phpdoc/ja/functions/domxml.xml Sun Apr 14 10:05:43 2002 @@ -1,921 +1,2910 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.15 $ --> +<!-- $Revision: 1.16 $ --> <reference id="ref.domxml"> <title>DOM XML颿°</title> <titleabbrev>DOM XML</titleabbrev> <partintro> - &warn.experimental; - <simpara> - ãã®ã¢ã¸ã¥ã¼ã«ã®é¢æ°ã¯ãconfigureæã« - <option role="configure">--with-dom=[DIR]</option>ãæå®ãã - <ulink url="&url.domxml;">GNOME xmlã©ã¤ãã©ãª</ulink>ã使ç¨ãã¦æ§ - ç¯ãããå ´åã«ã®ã¿å©ç¨å¯è½ã§ããå°ãªãã¨ãlibxml-2.2.7ãå¿ è¦ã§ãã - ãããã®é¢æ°ã¯ãPHP4ã§è¿½å ããã¾ããã - </simpara> - <simpara> - æ¬ã¢ã¸ã¥ã¼ã«ã«ããXMLããã¥ã¡ã³ããDOM APIã«ããæä½ãããã¨ãå¯è½ - ã«ãªãã¾ããXMLããã¥ã¡ã³ãå ¨ä½ã PHPãªãã¸ã§ã¯ãããªã¼ã«å¤æãã - <function>xmltree</function>颿°ããµãã¼ãããã¾ããç¾å¨ããã®ããªã¼ - ã¯èªã¿è¾¼ã¿ã®ã¿ãå¯è½ã§ãããä¿®æ£ãããã¨ã¯ã§ãã¾ããããããã - <function>dumpmem</function> ãé©ç¨ãããã¨ãã§ããªãããããã®å¶ - ç´ã«ã¯æå³ãããã¾ããããã®ãããXMLãã¡ã¤ã«ãèªã¿è¾¼ãã§ä¿®æ£ãã - ãã¼ã¸ã§ã³ãæ¸ãè¾¼ã¿ããå ´åã«ã¯ã<function>add_node</function>ã - <function>set_attribute</function>çã使ç¨ããæå¾ã« - <function>dumpmem</function> 颿°ã使ç¨ãã¦ä¸ããã - </simpara> - <simpara> - æ¬ã¢ã¸ã¥ã¼ã«ã¯ã次ã®å®æ°ãå®ç¾©ãã¾ãã - </simpara> - <table> - <title>XML宿°</title> - <tgroup cols="3"> - <thead> - <row> - <entry>宿°</entry> - <entry>å¤</entry> - <entry>説æ</entry> - </row> - </thead> - <tbody> - <row> - <entry>XML_ELEMENT_NODE</entry> - <entry>1</entry> - <entry>ãã®ãã¼ãã¯ã¨ã¬ã¡ã³ãã§ã</entry> - </row> - <row> - <entry>XML_ATTRIBUTE_NODE</entry> - <entry>2</entry> - <entry>ãã®ãã¼ãã¯å±æ§ã§ã</entry> - </row> - <row> - <entry>XML_TEXT_NODE</entry> - <entry>3</entry> - <entry>ãã®ãã¼ãã¯ããã¹ãé¨ã§ã</entry> - </row> - <row> - <entry>XML_CDATA_SECTION_NODE</entry> - <entry>4</entry> - <entry></entry> - </row> - <row> - <entry>XML_ENTITY_REF_NODE</entry> - <entry>5</entry> - <entry></entry> - </row> - <row> - <entry>XML_ENTITY_NODE</entry> - <entry>6</entry> - <entry>ãã®ãã¼ã㯠&nbsp; ã®ãããªã¨ã³ãã£ãã£ã§ã</entry> - </row> - <row> - <entry>XML_PI_NODE</entry> - <entry>7</entry> - <entry>ãã®ãã¼ãã¯å¦çå½ä»¤(PI)ã§ã</entry> - </row> - <row> - <entry>XML_COMMENT_NODE</entry> - <entry>8</entry> - <entry>ãã®ãã¼ãã¯ã³ã¡ã³ãã§ã</entry> - </row> - <row> - <entry>XML_DOCUMENT_NODE</entry> - <entry>9</entry> - <entry>ãã®ãã¼ãã¯ããã¥ã¡ã³ãã§ã</entry> - </row> - <row> - <entry>XML_DOCUMENT_TYPE_NODE</entry> - <entry>10</entry> - <entry></entry> - </row> - <row> - <entry>XML_DOCUMENT_FRAG_NODE</entry> - <entry>11</entry> - <entry></entry> - </row> - <row> - <entry>XML_NOTATION_NODE</entry> - <entry>12</entry> - <entry></entry> - </row> - <row> - <entry>XML_GLOBAL_NAMESPACE</entry> - <entry>1</entry> - <entry></entry> - </row> - <row> - <entry>XML_LOCAL_NAMESPACE</entry> - <entry>2</entry> - <entry></entry> - </row> - </tbody> - </tgroup> - </table> - <simpara> - æ¬ã¢ã¸ã¥ã¼ã«ã®å颿°ã¯ã2種é¡ã®æ¹æ³ã§ä½¿ç¨å¯è½ã§ãããªãã¸ã§ã¯ãæ - åçã§ãªãææ³ã¨ãã¦ã¯æåã®å¼æ°ã¨ãã¦ãªãã¸ã§ã¯ããæ¸¡ãæ¹æ³ãããã - ãªãã¸ã§ã¯ãæåçãªæ¹æ³ã¨ãã¦ã¯é¢æ°ããªãã¸ã§ã¯ãã®ã¡ã½ããã¨ã㦠- ã³ã¼ã«ããæ¹æ³ãããã¾ããæ¬ããã¥ã¡ã³ãã¯ããªãã¸ã§ã¯ãæåçã§ãª - ã颿°ã説æãã¾ãããæ¥é è¾ "domxml_" ãçç¥ãããã¨ã«ãããªãã¸ã§ - ã¯ãæåçã¡ã½ããã使ç¨ãããã¨ãå¯è½ã§ãã - </simpara> - <simpara> - æ¬ã¢ã¸ã¥ã¼ã«ã¯ã以ä¸ã®ãã¼ãã«ã«ç¤ºã —ããããã£ããã³ã¡ã½ã - ããå«ã — å¤ãã®ã¯ã©ã¹ãå®ç¾©ãã¾ãã - </simpara> - <para> - <table> - <title>DomDocument ã¯ã©ã¹ (ã¡ã½ãã)</title> - <tgroup cols="3"> - <thead> - <row> - <entry>ã¡ã½ããå</entry> - <entry>颿°å</entry> - <entry>説æ</entry> - </row> - </thead> - <tbody> - <row> - <entry>root</entry> - <entry><function>domxml_root</function></entry> - <entry></entry> - </row> - <row> - <entry>children</entry> - <entry><function>domxml_children</function></entry> - <entry></entry> - </row> - <row> - <entry>add_root</entry> - <entry><function>domxml_add_root</function></entry> - <entry></entry> - </row> - <row> - <entry>dtd</entry> - <entry><function>domxml_intdtd</function></entry> - <entry></entry> - </row> - <row> - <entry>dumpmem</entry> - <entry><function>domxml</function></entry> - <entry></entry> - </row> - <row> - <entry>xpath_init</entry> - <entry>xpath_init</entry> - <entry></entry> - </row> - <row> - <entry>xpath_new_context</entry> - <entry>xpath_new_context</entry> - <entry></entry> - </row> - <row> - <entry>xptr_new_context</entry> - <entry>xptr_new_context</entry> - <entry></entry> - </row> - </tbody> - </tgroup> - </table> - </para> - - <para> - <table> - <title>DomDocument ã¯ã©ã¹ (屿§)</title> - <tgroup cols="3"> - <thead> - <row> - <entry>åå</entry> - <entry>å</entry> - <entry>説æ</entry> - </row> - </thead> - <tbody> - <row> - <entry>doc</entry> - <entry>class DomDocument</entry> - <entry>ãªãã¸ã§ã¯ãèªèº«</entry> - </row> - <row> - <entry>name</entry> - <entry>string</entry> - <entry></entry> - </row> - <row> - <entry>url</entry> - <entry>string</entry> - <entry></entry> - </row> - <row> - <entry>version</entry> - <entry>string</entry> - <entry>XMLã®ãã¼ã¸ã§ã³</entry> - </row> - <row> - <entry>encoding</entry> - <entry>string</entry> - <entry></entry> - </row> - <row> - <entry>standalone</entry> - <entry>long</entry> - <entry>ãã®ãã¡ã¤ã«ãstandaloneãã¼ã¸ã§ã³ã®å ´åã«1</entry> - </row> - <row> - <entry>type</entry> - <entry>long</entry> - <entry>表ä¸ã®å®æ°ã®ã©ãã ... </entry> - </row> - <row> - <entry>compression</entry> - <entry>long</entry> - <entry>ãã®ãã¡ã¤ã«ãå§ç¸®ããã¦ããå ´åã«1</entry> - </row> - <row> - <entry>charset</entry> - <entry>long</entry> - <entry></entry> - </row> - </tbody> - </tgroup> - </table> - </para> - - <para> - <table> - <title>DomNode class (ã¡ã½ãã)</title> - <tgroup cols="3"> - <thead> - <row> - <entry>åå</entry> - <entry>PHPå</entry> - <entry>説æ</entry> - </row> - </thead> - <tbody> - <row> - <entry>lastchild</entry> - <entry><function>domxml_last_child</function></entry> - <entry></entry> - </row> - <row> - <entry>children</entry> - <entry><function>domxml_children</function></entry> - <entry></entry> - </row> - <row> - <entry>parent</entry> - <entry><function>domxml_parent</function></entry> - <entry></entry> - </row> - <row> - <entry>new_child</entry> - <entry><function>domxml_new_child</function></entry> - <entry></entry> - </row> - <row> - <entry>get_attribute</entry> - <entry><function>domxml_get_attribute</function></entry> - <entry></entry> - </row> - <row> - <entry>set_attribute</entry> - <entry><function>domxml_set_attribute</function></entry> - <entry></entry> - </row> - <row> - <entry>attributes</entry> - <entry><function>domxml_attributes</function></entry> - <entry></entry> - </row> - <row> - <entry>node</entry> - <entry><function>domxml_node</function></entry> - <entry></entry> - </row> - <row> - <entry><function>set_content</function></entry> - <entry>domxml_set_content</entry> - <entry></entry> - </row> - </tbody> - </tgroup> - </table> - </para> - - <para> - <table> - <title>DomNode ã¯ã©ã¹ (屿§)</title> - <tgroup cols="3"> - <thead> - <row> - <entry>åå</entry> - <entry>å</entry> - <entry>説æ</entry> - </row> - </thead> - <tbody> - <row> - <entry>node</entry> - <entry>class DomNode</entry> - <entry>ãªãã¸ã§ã¯ãèªèº«</entry> - </row> - <row> - <entry>type</entry> - <entry>long</entry> - <entry></entry> - </row> - <row> - <entry>name</entry> - <entry>string</entry> - <entry></entry> - </row> - <row> - <entry>content</entry> - <entry>string</entry> - <entry></entry> - </row> - </tbody> - </tgroup> - </table> - </para> + <sect1 id="domxml-intro"> + <title>ã¯ããã«</title> + &warn.experimental; + <para> + domxmlæ¡å¼µã¢ã¸ã¥ã¼ã«ã¯ãDOMæ¨æºã«å¯¾ããäºææ§ãæ¹åããããPHPãã¼ + ã¸ã§ã³4.3.0ã§æ¸ãç´ããã¾ãããæ¡å¼µã¢ã¸ã¥ã¼ã«ã«ã¯ãã¾ã ãå¤ãã®å¤ + ã颿°ãå«ã¾ãã¦ãã¾ããã使ç¨ã¯æ¨å¥¨ããã¾ãããç¹ã«ãªãã¸ã§ã¯ã + æåã§ãªã颿°ã®ä½¿ç¨ã¯é¿ããã¹ãã§ãã + </para> + <para> + æ¡å¼µã¢ã¸ã¥ã¼ã«ã«ããDOM APIã§XMLããã¥ã¡ã³ããå¦çãããã¨ãå¯è½ + ã¨ãªãã¾ããã¾ããå®å ¨ãªXMLããã¥ã¡ã³ããPHPãªãã¸ã§ã¯ãããªã¼ã« + 夿ãã颿°<function>domxml_xmltree</function>ãæä¾ããã¦ãã¾ãã + ç¾å¨ããã®ããªã¼ã¯èªã¿è¾¼ã¿å¯ã¨ããã¦ãã¾ãããã®ããªã¼ãä¿®æ£ãã + ãã¨ã¯å¯è½ã§ããã<function>DomDocument_dump_mem</function>ã«ãã + ãé©ç¨ãããã¨ã¯ã§ããªããããæå³ã¯ããã¾ããã + ããã§ãXMLãã¡ã¤ã«ãèªã¿è¾¼ã¿ãä¿®æ£ããçãæ¸ãè¾¼ã¿ããå ´åã + <function>DomDocument_create_element</function>, + <function>DomDocument_create_text</function>, + <function>set_attribute</function>çã使ç¨ããæå¾ã« + <function>DomDocument_dump_mem</function>颿°ã使ç¨ãã¦ä¸ããã + </para> + </sect1> + + <sect1 id="domxml-requirements"> + <title>å¿ è¦ãªãã®</title> + <para> + ãã®æ¡å¼µã¢ã¸ã¥ã¼ã«ã¯ãPHPã®configureã + <ulink url="&url.domxml;">GNOME XMLã©ã¤ãã©ãª</ulink>ãç¨ã㦠+ <option role="configure">--with-dom=[DIR]</option>ãæå®ã㦠+ å®è¡ããã¦ããå ´åã®ã¿å©ç¨å¯è½ã§ããlibxml-2.2.7以éãå¿ è¦ã§ãã + </para> + </sect1> + + <sect1 id="domxml-deprecated"> + <title>å¤ã颿°</title> + <para> + <table> + <title>å¤ã颿°ã¨ãã®ä»£æ¿é¢æ°</title> + <tgroup cols="2"> + <thead> + <row> + <entry>å¤ã颿°</entry> + <entry>æ°ãã颿°</entry> + </row> + </thead> + <tbody> + <row> + <entry>xmldoc</entry> + <entry><function>domxml_open_mem</function></entry> + </row> + <row> + <entry>xmldocfiel</entry> + <entry><function>domxml_open_file</function></entry> + </row> + <row> + <entry>domxml_new_xmldoc</entry> + <entry><function>domxml_new_doc</function></entry> + </row> + <row> + <entry>domxml_dump_mem</entry> + <entry><function>DomDocument_dump_mem</function></entry> + </row> + <row> + <entry>domxml_dump_mem_file</entry> + <entry><function>DomDocument_dump_file</function></entry> + </row> + <row> + <entry>DomDocument_dump_mem_file</entry> + <entry><function>DomDocument_dump_file</function></entry> + </row> + <row> + <entry>DomDocument_add_root</entry> + <entry> + <function>DomDocument_create_element</function>ã®å¾ã« + <function>DomNode_append_child</function> + </entry> + </row> + <row> + <entry>DomDocument_dtd</entry> + <entry><function>DomDocument_doctype</function></entry> + </row> + <row> + <entry>DomDocument_root</entry> + <entry><function>DomDocument_document_element</function></entry> + </row> + <row> + <entry>DomDocument_children</entry> + <entry><function>DomNode_child_nodes</function></entry> + </row> + <row> + <entry>DomDocument_imported_node</entry> + <entry>No replacement.</entry> + </row> + <row> + <entry>DomNode_add_child</entry> + <entry> + Create a new node with e.g. + <function>DomDocument_create_element</function> und add it with + <function>DomNode_append_child</function>. + </entry> + </row> + <row> + <entry>DomNode_children</entry> + <entry><function>DomNode_child_nodes</function></entry> + </row> + <row> + <entry>DomNode_parent</entry> + <entry><function>DomNode_parent_node</function></entry> + </row> + <row> + <entry>DomNode_new_child</entry> + <entry> + ä¾ãã°<function>DomDocument_create_element</function>ã§ + æ°è¦ãã¼ãã使ãã + <function>DomNode_append_child</function>ã§è¿½å ãã¾ãã + </entry> + </row> + <row> + <entry>DomNode_set_content</entry> + <entry> + ä¾ãã°<function>DomDocument_create_element</function>ã§ + æ°è¦ãã¼ãã使ãã + <function>DomNode_append_child</function>ã§è¿½å ãã¾ãã + </entry> + </row> + <row> + <entry>DomNode_get_content</entry> + <entry> + ã³ã³ãã³ãã¯ããã¹ããã¼ãã§ããã + <function>DomNode_child_nodes</function>ã§ã¢ã¯ã»ã¹å¯è½ã§ãã + </entry> + </row> + <row> + <entry>DomNode_set_content</entry> + <entry> + ã³ã³ãã³ãã¯ããã¹ããã¼ãã§ããã + <function>DomNode_append_child</function>ã§è¿½å ã§ãã¾ãã + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </sect1> + + <sect1 id="domxml-constants"> + <title>宿°</title> + <para> + ãã®ã¢ã¸ã¥ã¼ã«ã¯ã以ä¸ã®å®æ°ãå®ç¾©ãã¾ãã + </para> + <table> + <title>XML宿°</title> + <tgroup cols="3"> + <thead> + <row> + <entry>宿°</entry> + <entry>å¤</entry> + <entry>説æ</entry> + </row> + </thead> + <tbody> + <row> + <entry>XML_ELEMENT_NODE</entry> + <entry>1</entry> + <entry>ãã¼ãã¯è¦ç´ (element)ã§ãã</entry> + </row> + <row> + <entry>XML_ATTRIBUTE_NODE</entry> + <entry>2</entry> + <entry>ãã¼ãã¯å±æ§(attribute)ã§ãã</entry> + </row> + <row> + <entry>XML_TEXT_NODE</entry> + <entry>3</entry> + <entry>ãã¼ãã¯ããã¹ãã®ä¸é¨ã§ãã</entry> + </row> + <row> + <entry>XML_CDATA_SECTION_NODE</entry> + <entry>4</entry> + <entry></entry> + </row> + <row> + <entry>XML_ENTITY_REF_NODE</entry> + <entry>5</entry> + <entry></entry> + </row> + <row> + <entry>XML_ENTITY_NODE</entry> + <entry>6</entry> + <entry>ãã¼ãã¯&nbsp;ã®ãããªã¨ã³ãã£ãã£ã§ãã</entry> + </row> + <row> + <entry>XML_PI_NODE</entry> + <entry>7</entry> + <entry>ãã¼ãã¯å¦çå½ä»¤(PI)ã§ãã</entry> + </row> + <row> + <entry>XML_COMMENT_NODE</entry> + <entry>8</entry> + <entry>ãã¼ãã¯ã³ã¡ã³ãã§ãã</entry> + </row> + <row> + <entry>XML_DOCUMENT_NODE</entry> + <entry>9</entry> + <entry>ãã¼ãã¯ããã¥ã¡ã³ãã§ãã</entry> + </row> + <row> + <entry>XML_DOCUMENT_TYPE_NODE</entry> + <entry>10</entry> + <entry></entry> + </row> + <row> + <entry>XML_DOCUMENT_FRAG_NODE</entry> + <entry>11</entry> + <entry></entry> + </row> + <row> + <entry>XML_NOTATION_NODE</entry> + <entry>12</entry> + <entry></entry> + </row> + <row> + <entry>XML_GLOBAL_NAMESPACE</entry> + <entry>1</entry> + <entry></entry> + </row> + <row> + <entry>XML_LOCAL_NAMESPACE</entry> + <entry>2</entry> + <entry></entry> + </row> + </tbody> + </tgroup> + </table> + </sect1> + + <sect1 id="domxml-classes"> + <title>ã¯ã©ã¹</title> + <para> + ã¢ã¸ã¥ã¼ã«ã®APIã¯ãDOMã¬ãã«2æ¨æºã«å¯è½ãªéãåºã¥ãã¦ãã¾ããçµæ + çã«APIã¯å®å ¨ã«ãªãã¸ã§ã¯ãæåã§ãããã®ã¢ã¸ã¥ã¼ã«ã使ç¨ããéã« + DOMæ¨æºãå©ç¨ã§ãããã¨ã¯æã¾ãããã¨ã§ãã + ãã®APIã¯ãªãã¸ã§ã¯ãæåã§ãããæåã®å¼æ°ã¨ãã¦å¦çãããªãã¸ã§ + ã¯ããæ¸¡ããªãã¸ã§ã¯ãæåã§ãªãæ¹æ³ã§ã³ã¼ã«ãããã¨ãã§ããå¤ã + ã®é¢æ°ãããã¾ãããããã®é¢æ°ã¯ã主ã«éå»ã®ãã¼ã¸ã§ã³ã¨ã®äºææ§ + 確ä¿ã®ããã«ç¶æããã¦ãã¾ãããæ°è¦éçºã§ã®ä½¿ç¨ã¯ãã¯ãæ¨å¥¨ãã + ã¾ããã + </para> + <para> + ãã®APIã¯ãå ¬å¼ãªDOM APIã¨ã¯äºã¤ã®ç¹ã§ç°ãªã£ã¦ãã¾ããã¾ããå ¨ã¦ + ã®ã¯ã©ã¹ã®å±æ§ã¯ãåãååãæãã颿°ã¨ãã¦å®è£ ããã颿°åã¯PHP + ã®å½å表è¨ã«åºã¥ãã¦ãã¾ããããã¯ãDOM颿°lastChild()ã + last_child()ã¨æ¸ããããã¨ãæå³ãã¾ãã + </para> + <para> + ãã®ã¢ã¸ã¥ã¼ã«ã¯ãä¸é£ã®ã¯ã©ã¹ãå®ç¾©ãã¾ããã¡ã½ãããå«ãããªã¹ + ãã以ä¸ã®è¡¨ã«ç¤ºãã¾ããã¯ã©ã¹ã¯ãDOMæ¨æºã§DOMxxxã¨ããååã®ãã® + ã¨ç価ã§ãã + </para> + + <para> + <table> + <title>ã¯ã©ã¹ã®ä¸è¦§</title> + <tgroup cols="2"> + <thead> + <row> + <entry>ã¯ã©ã¹å</entry> + <entry>親ã¯ã©ã¹</entry> + </row> + </thead> + <tbody> + <row> + <entry>DomAttribute</entry> + <entry>DomNode</entry> + </row> + <row> + <entry>DomCData</entry> + <entry>DomNode</entry> + </row> + <row> + <entry>DomComment</entry> + <entry>DomCData : DomNode</entry> + </row> + <row> + <entry>DomDocument</entry> + <entry>DomNode</entry> + </row> + <row> + <entry>DomDocumentType</entry> + <entry>DomNode</entry> + </row> + <row> + <entry>DomElement</entry> + <entry>DomNode</entry> + </row> + <row> + <entry>DomEntity</entry> + <entry>DomNode</entry> + </row> + <row> + <entry>DomEntityReference</entry> + <entry>DomNode</entry> + </row> + <row> + <entry>DomProcessingInstruction</entry> + <entry>DomNode</entry> + </row> + <row> + <entry>DomText</entry> + <entry>DomCData : DomNode</entry> + </row> + <row> + <entry>Parser</entry> + <entry>ç¾å¨ã¯ã¾ã DomParserã¨å¼ã°ãã¦ãã¾ã</entry> + </row> + <row> + <entry>XPathContext</entry> + <entry></entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + <table> + <title>DomDocument ã¯ã©ã¹ (DomDocument : DomNode)</title> + <tgroup cols="3"> + <thead> + <row> + <entry>ã¡ã½ããå</entry> + <entry>颿°å</entry> + <entry>注æ</entry> + </row> + </thead> + <tbody> + <row> + <entry>doctype</entry> + <entry><function>DomDocument_doctype</function></entry> + <entry></entry> + </row> + <row> + <entry>document_elemnent</entry> + <entry><function>DomDocument_document_element</function></entry> + <entry></entry> + </row> + <row> + <entry>create_element</entry> + <entry><function>DomDocument_create_element</function></entry> + <entry></entry> + </row> + <row> + <entry>create_text_node</entry> + <entry><function>DomDocument_create_text_node</function></entry> + <entry></entry> + </row> + <row> + <entry>create_comment</entry> + <entry><function>DomDocument_create_comment</function></entry> + <entry></entry> + </row> + <row> + <entry>create_cdata_section</entry> + <entry><function>DomDocument_create_cdata_section</function></entry> + <entry></entry> + </row> + <row> + <entry>create_processing_instruction</entry> + <entry><function>DomDocument_create_processing_instruction</function></entry> + <entry></entry> + </row> + <row> + <entry>create_attribute</entry> + <entry><function>DomDocument_create_attribute</function></entry> + <entry></entry> + </row> + <row> + <entry>create_entity_reference</entry> + <entry><function>DomDocument_create_entity_reference</function></entry> + <entry></entry> + </row> + <row> + <entry>get_elements_by_tagname</entry> + <entry><function>DomDocument_get_elements_by_tagname</function></entry> + <entry></entry> + </row> + <row> + <entry>get_element_by_id</entry> + <entry><function>DomDocument_get_element_by_id</function></entry> + <entry></entry> + </row> + <row> + <entry>dump_mem</entry> + <entry><function>DomDocument_dump_mem</function></entry> + <entry>DOMæ¨æºã§ã¯ãªã</entry> + </row> + <row> + <entry>dump_file</entry> + <entry><function>DomDocument_dump_file</function></entry> + <entry>DOMæ¨æºã§ã¯ãªã</entry> + </row> + <row> + <entry>html_dump_mem</entry> + <entry><function>DomDocument_html_dump_mem</function></entry> + <entry>DOMæ¨æºã§ã¯ãªã</entry> + </row> + <row> + <entry>xpath_init</entry> + <entry>xpath_init</entry> + <entry>DOMæ¨æºã§ã¯ãªã</entry> + </row> + <row> + <entry>xpath_new_context</entry> + <entry>xpath_new_context</entry> + <entry>DOMæ¨æºã§ã¯ãªã</entry> + </row> + <row> + <entry>xptr_new_context</entry> + <entry>xptr_new_context</entry> + <entry>DOMæ¨æºã§ã¯ãªã</entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + <table> + <title>DomElement ã¯ã©ã¹ (DomElement : DomNode)</title> + <tgroup cols="3"> + <thead> + <row> + <entry>ã¡ã½ããå</entry> + <entry>颿°å</entry> + <entry>注æ</entry> + </row> + </thead> + <tbody> + <row> + <entry>tagname</entry> + <entry><function>DomElement_tagname</function></entry> + <entry></entry> + </row> + <row> + <entry>get_attribute</entry> + <entry><function>DomElement_get_attribute</function></entry> + <entry></entry> + </row> + <row> + <entry>set_attribute</entry> + <entry><function>DomElement_set_attribute</function></entry> + <entry></entry> + </row> + <row> + <entry>remove_attribute</entry> + <entry><function>DomElement_remove_attribute</function></entry> + <entry></entry> + </row> + <row> + <entry>get_attribute_node</entry> + <entry><function>DomElement_get_attribute_node</function></entry> + <entry></entry> + </row> + <row> + <entry>set_attribute_node</entry> + <entry><function>DomElement_set_attribute_node</function></entry> + <entry></entry> + </row> + <row> + <entry>get_elements_by_tagname</entry> + <entry><function>DomElement_get_elements_by_tagname</function></entry> + <entry></entry> + </row> + <row> + <entry>has_attribute</entry> + <entry><function>DomElement_has_attribute</function></entry> + <entry></entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + <table> + <title>DomNode ã¯ã©ã¹</title> + <tgroup cols="2"> + <thead> + <row> + <entry>ã¡ã½ããå</entry> + <entry>注æ</entry> + </row> + </thead> + <tbody> + <row> + <entry><function>DomNode_node_name</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_node_value</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_node_type</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_last_child</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_first_child</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_child_nodes</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_previous_sibling</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_next_sibling</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_parent_node</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_owner_document</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_insert_before</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_append_child</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_remove_child</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_has_child_nodes</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_has_attributes</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_clone_node</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_attributes</function></entry> + <entry></entry> + </row> + <row> + <entry><function>DomNode_unlink_node</function></entry> + <entry>DOMæ¨æºã§ã¯ãªã</entry> + </row> + <row> + <entry><function>DomNode_replace_node</function></entry> + <entry>DOMæ¨æºã§ã¯ãªã</entry> + </row> + <row> + <entry><function>DomNode_set_content</function></entry> + <entry>DOMæ¨æºã«ã¯ãªããå¤ãã¡ã½ããã§ã</entry> + </row> + <row> + <entry><function>DomNode_get_content</function></entry> + <entry>DOMæ¨æºã«ã¯ãªããå¤ãã¡ã½ããã§ã</entry> + </row> + <row> + <entry><function>DomNode_dump_node</function></entry> + <entry>DOMæ¨æºã§ã¯ãªã</entry> + </row> + <row> + <entry><function>DomNode_is_blank_node</function></entry> + <entry>DOMæ¨æºã§ã¯ãªã</entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + <table> + <title>DomAttribute ã¯ã©ã¹ (DomAttribute : DomNode)</title> + <tgroup cols="3"> + <thead> + <row> + <entry>ã¡ã½ããå</entry> + <entry></entry> + <entry>注æ</entry> + </row> + </thead> + <tbody> + <row> + <entry>name</entry> + <entry><function>DomAttribute_name</function></entry> + <entry></entry> + </row> + <row> + <entry>value</entry> + <entry><function>DomAttribute_value</function></entry> + <entry></entry> + </row> + <row> + <entry>specified</entry> + <entry><function>DomAttribute_specified</function></entry> + <entry></entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + <table> + <title>DomProcessingInstruction ã¯ã©ã¹ (DomProcessingInstruction : DomNode)</title> + <tgroup cols="3"> + <thead> + <row> + <entry>ã¡ã½ããå</entry> + <entry>颿°å</entry> + <entry>注æ</entry> + </row> + </thead> + <tbody> + <row> + <entry>target</entry> + <entry><function>DomProcessingInstruction_target</function></entry> + <entry></entry> + </row> + <row> + <entry>data</entry> + <entry><function>DomProcessingInstruction_data</function></entry> + <entry></entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + <table> + <title>Parser ã¯ã©ã¹</title> + <tgroup cols="3"> + <thead> + <row> + <entry>ã¡ã½ããå</entry> + <entry>颿°å</entry> + <entry>注è¨</entry> + </row> + </thead> + <tbody> + <row> + <entry>add_chunk</entry> + <entry><function>Parser_add_chunk</function></entry> + <entry></entry> + </row> + <row> + <entry>end</entry> + <entry><function>Parser_end</function></entry> + <entry></entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + <table> + <title>XPathContext ã¯ã©ã¹</title> + <tgroup cols="3"> + <thead> + <row> + <entry>ã¡ã½ããå</entry> + <entry>颿°å</entry> + <entry>注è¨</entry> + </row> + </thead> + <tbody> + <row> + <entry>eval</entry> + <entry><function>XPathContext_eval</function></entry> + <entry></entry> + </row> + <row> + <entry>eval_expression</entry> + <entry><function>XPathContext_eval_expression</function></entry> + <entry></entry> + </row> + <row> + <entry>register_ns</entry> + <entry><function>XPathContext_register_ns</function></entry> + <entry></entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + <table> + <title>DomDocumentType ã¯ã©ã¹ (DomDocumentType : DomNode)</title> + <tgroup cols="3"> + <thead> + <row> + <entry>ã¡ã½ããå</entry> + <entry>颿°å</entry> + <entry>注è¨</entry> + </row> + </thead> + <tbody> + <row> + <entry>name</entry> + <entry><function>DomDocumentType_name</function></entry> + <entry></entry> + </row> + <row> + <entry>entities</entry> + <entry><function>DomDocumentType_entities</function></entry> + <entry></entry> + </row> + <row> + <entry>notations</entry> + <entry><function>DomDocumentType_notations</function></entry> + <entry></entry> + </row> + <row> + <entry>public_id</entry> + <entry><function>DomDocumentType_public_id</function></entry> + <entry></entry> + </row> + <row> + <entry>system_id</entry> + <entry><function>DomDocumentType_system_id</function></entry> + <entry></entry> + </row> + <row> + <entry>internal_subset</entry> + <entry><function>DomDocumentType_internal_subset</function></entry> + <entry></entry> + </row> + </tbody> + </tgroup> + </table> + </para> + + <para> + ã¯ã©ã¹DomDtdã¯DomNodeããæ´¾çãããã®ã§ããDomCommentã¯DomCDataã + ãæ´¾çãããã®ã§ãã + </para> + </sect1> + + <sect1 id="domxml-examples"> + <title>ä¾</title> + <para> + ãã®ãªãã¡ã¬ã³ã¹ã«ãããå¤ãã®ä¾ã¯ãXMLæååãå¿ è¦ã¨ãã¾ãããã® + æååãå ¨ã¦ã®ä¾ã§ç¹°ããããè¨è¿°ãããããã«ããã¡ã¤ã«ã«æ¸ãè¾¼ã + ã§ãåä¾ã§èªã¿è¾¼ããã¨ã«ãã¾ãããã®èªã¿è¾¼ã¾ãããã¡ã¤ã«ã¯ãä»¥ä¸ + ã®ä¾ã«ç¤ºããã¦ãã¾ããXMLããã¥ã¡ã³ãã使ãã + <function>DomDocument_open_file</function>ã§èªã¿è¾¼ããã¨ãå¯è½ã§ + ãã + </para> + <para> + <example> + <title>XMLæååãæãããã¡ã¤ã«example.incãèªã¿è¾¼ã</title> + <programlisting role="php"> +<![CDATA[ +<?php +$xmlstr = "<?xml version='1.0' standalone='yes'?> +<!DOCTYPE chapter SYSTEM '/share/sgml/Norman_Walsh/db3xml10/db3xml10.dtd' +[ <!ENTITY sp \"spanish\"> +]> +<!-- lsfj --> +<chapter language='en'><title language='en'>Title</title> + <para language='ge'> + &sp; + <!-- comment --> + <informaltable ID='findme' language='&sp;'> + <tgroup cols='3'> + <tbody> + <row><entry>a1</entry><entry +morerows='1'>b1</entry><entry>c1</entry></row> +<row><entry>a2</entry><entry>c2</entry></row> + <row><entry>a3</entry><entry>b3</entry><entry>c3</entry></row> + </tbody> + </tgroup> + </informaltable> + </para> +</chapter>"; +?> +]]> + </programlisting> + </example> + </para> + </sect1> </partintro> - <!-- class Dom document --> - <!-- has member functions - array root([int doc_handle]) - returns array of root nodes of this document. Array - elements are objects of class "Dom node" having properties of - "node" (resource), "type" (long), "name" (string) - and optionally "content" (string). - - array children([ int node ]) - returns an array of child nodes of this element. Array - elements are objects of class "Dom node" having properties - of "node" (resource), "type" (long), "name" (string) - and optionally "content" (string). - - object add_root([int doc_handle,] string name) - Add a root node to document. - - returns an object of class "Dom node" having properties - of "node" (resource), "type" (long), "name" (string) - and optionally "content" (string). - - object intdtd([int doc_handle]) - returns the DTD of document. - - returns an object of class "Dtd" having properties - of "dtd" (resource), "sysid" (string), "name" (string) - and optionally "extid" (string). - - string dumpmem([int doc_handle]) - dumps document into string. - --> - - <!-- class Dom node - object lastchild([int node]) - returns Dom node object - - array children([int node]) - as above - - object parent([ int node]) - returns Dom node object - (parent of this node) - - new_child - string getattr([int node,] string attrname) - get value of attribute named attrname - - bool setattr([int node,] string attrname, string value) - set value of given attribute. - - array attributes([int node]) - returns associative array of (string name, string value) - pairs. - - object node(string name) - creates a named Dom node object. - --> - - <!-- class Dom Attribute - name - --> - - <!-- class Dom Namespace - --> + <refentry id="function.domxml-open-mem"> + <refnamediv> + <refname>domxml_open_mem</refname> + <refpurpose>XMLããã¥ã¡ã³ãããDOMãªãã¸ã§ã¯ãã使ãã</refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>domxml_open_mem</methodname> + <methodparam><type>string</type><parameter>str</parameter></methodparam> + </methodsynopsis> + <para> + ãã®é¢æ°ã¯ã<parameter>str</parameter>ã®XMLããã¥ã¡ã³ãããã¼ã¹ãã + ã¯ã©ã¹"Dom document"ã®ãªãã¸ã§ã¯ããè¿ãã¾ãã + ãã®ãªãã¸ã§ã¯ãã¯ãä¸ã®ãªã¹ãã示ããããããã£ãæãã¦ãã¾ãã + ãã®é¢æ°ã<function>domxml_open_file</function>ã + <function>domxml_new_doc</function>ã¯ãå ¨ã¦ã®ä»ã®é¢æ°ãã³ã¼ã«ãã + åã«ã³ã¼ã«ããå¿ è¦ãããã¾ãã + </para> + <para> + <example> + <title>æååããXMLããã¥ã¡ã³ãããªã¼ãã³ãã</title> + <programlisting role="php"> +<![CDATA[ +<?php +include("example.inc"); + +if(!$dom = domxml_open_mem($xmlstr)) { + echo "Error while parsing the document\n"; + exit; +} + +$root = $dom->document_element(); +?> +]]> + </programlisting> + </example> + </para> + <para> + <function>domxml_open_file</function>, + <function>domxml_new_doc</function>ãåç §ä¸ããã + </para> + </refsect1> + </refentry> + + <refentry id="function.domxml-open-file"> + <refnamediv> + <refname>domxml_open_file</refname> + <refpurpose>XMLãã¡ã¤ã«ããDOMãªãã¸ã§ã¯ãã使ãã</refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>domxml_open_file</methodname> + <methodparam><type>string</type> + <parameter>filename</parameter> + </methodparam> + </methodsynopsis> + <para> + ãã®é¢æ°ã¯ã<parameter>filename</parameter>ã¨ããååã®ãã¡ã¤ã«ã® + ä¸ã®XMLããã¥ã¡ã³ãããã¼ã¹ããã¯ã©ã¹"Dom document"ã®ãªãã¸ã§ã¯ã + ãè¿ãã¾ãããã®ãªãã¸ã§ã¯ãã¯ä¸è¨ãªã¹ãã¨åãããããã£ãæãã¾ + ãããã¡ã¤ã«ã¯ãèªã¿è¾¼ã¿ã®ã¿å¯ã§ã¢ã¯ã»ã¹ããã¾ãã + </para> + <para> + <example> + <title>ãã¡ã¤ã«ããXMLããã¥ã¡ã³ãããªã¼ãã³ãã</title> + <programlisting role="php"> +<![CDATA[ +<?php + +if(!$dom = domxml_open_file("example.xml")) { + echo "Error while parsing the document\n"; + exit; +} + +$root = $dom->document_element(); +?> +]]> + </programlisting> + </example> + </para> + <para> + <function>domxml_open_mem</function>, + <function>domxml_new_doc</function>ãåç §ä¸ããã + </para> + </refsect1> + </refentry> + + <refentry id="function.domxml-new-doc"> + <refnamediv> + <refname>domxml_new_doc</refname> + <refpurpose> + 空ã®XMLããã¥ã¡ã³ãã使ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>domxml_new_doc</methodname> + <methodparam><type>string</type> + <parameter>version</parameter> + </methodparam> + </methodsynopsis> + &warn.experimental.func; + <para> + ã¹ã¯ã©ããããæ°è¦DOMããã¥ã¡ã³ãã使ããè¿ãã¾ãã + </para> + <para> + <function>DomDocument_add_root</function>ãåç §ä¸ããã + </para> + </refsect1> + </refentry> + + <refentry id="function.domxml-xmltree"> + <refnamediv> + <refname>domxml_xmltree</refname> + <refpurpose> + XMLããã¥ã¡ã³ãããPHPãªãã¸ã§ã¯ãããªã¼ã使ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>domxml_xmltree</methodname> + <methodparam><type>string</type><parameter>str</parameter></methodparam> + </methodsynopsis> + &warn.experimental.func; + <para> + ãã®é¢æ°ã¯ã<parameter>str</parameter>ã®XMLããã¥ã¡ã³ãããã¼ã¹ãã + ãã¼ã¹æ¸ã®ããã¥ã¡ã³ãã¨ãã¦PHPãªãã¸ã§ã¯ãã®ããªã¼ãè¿ãã¾ããä» + ã®é¢æ°ã¯ãã®ããªã¼ã«ã¯ã¢ã¯ã»ã¹ã§ããªãããããã®é¢æ°ã¯ä»ã®é¢æ°ã¨ + ç°ãªã£ã¦ãã¾ããä¾ãã°ãã¼ãã追å ããæã®ããã«ããã®ããªã¼ãä¿® + æ£ãããã¨ã«ã¯ãç¾å¨XMLãã¡ã¤ã«ã¨ãã¦ããªã¼ããã³ãããææ®µããªã + ããæå³ãããã¾ããããã®é¢æ°ã¯ããã¡ã¤ã«ãèªã¿è¾¼ãã§å®æ°ã調㹠+ ããå ´åã«ã¯æç¨ã§ãã + </para> + </refsect1> + </refentry> + + <refentry id='function.domxml-version'> + <refnamediv> + <refname>domxml_version</refname> + <refpurpose> + XMLã©ã¤ãã©ãªã®ãã¼ã¸ã§ã³ãåå¾ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>string</type><methodname>domxml_version</methodname> + <void/> + </methodsynopsis> + <para> + ãã®é¢æ°ã¯ãç¾å¨ä½¿ç¨ãããXMLã©ã¤ãã©ãªã®ãã¼ã¸ã§ã³ãè¿ãã¾ãã + </para> + </refsect1> + </refentry> + + <!-- Start of class DomDocument --> + + <refentry id="function.DomDocument-doctype"> + <refnamediv> + <refname>DomDocument->doctype</refname> + <refpurpose> + ããã¥ã¡ã³ãåãè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>DomDocument->doctype</methodname> + <void/> + </methodsynopsis> + <para> + ãã®é¢æ°ã¯ãã¯ã©ã¹<classname>DomDocumentType</classname>ã®ãªãã¸ã§ + ã¯ããè¿ãã¾ãã4.3ããåã®ãã¼ã¸ã§ã³ã®PHPã§ã¯ããã®ãªãã¸ã§ã¯ã + ã¯ãã¯ã©ã¹<classname>Dtd</classname>ã§ããããDOMæ¨æºã«ã¯ãã®ãã + ãªã¯ã©ã¹ã¯ããã¾ããã + </para> + <para> + ã¯ã©ã¹<classname>DomDocumentType</classname>ã®ã¡ã½ãããåç §ä¸ã + ãã + </para> + </refsect1> + </refentry> + + <refentry id="function.DomDocument-document-element"> + <refnamediv> + <refname>DomDocument->document_element</refname> + <refpurpose> + ã«ã¼ãã¨ã¬ã¡ã³ããã¼ããè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</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. + <example> + <title>Retrieving root element</title> + <programlisting role="php"> +<![CDATA[ +<?php +include("example.inc"); + +if(!$dom = domxml_open_mem($xmlstr)) { + echo "Error while parsing the document\n"; + exit; +} + +$root = $dom->document_element(); +print_r($root); +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + </refentry> + + <refentry id="function.DomDocument-create-element"> + <refnamediv> + <refname>DomDocument->create_element</refname> + <refpurpose> + æ°è¦ã¨ã¬ã¡ã³ããã¼ãã使ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>DomDocument->create_element</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + </methodsynopsis> + <para> + This function returns a new instance of class + <classname>DomElement</classname>. The tag name of the element 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>. + </para> + <para> + The return value is false if an error occured. + </para> + <para> + See also <function>DomNode_append_child</function>, + <function>DomDocument_create_text</function>, + <function>DomDocument_create_comment</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> + + <refentry id="function.DomDocument-create-text-node"> + <refnamediv> + <refname>DomDocument->create_text_node</refname> + <refpurpose> + æ°è¦ããã¹ããã¼ãã使ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</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>. + </para> + <para> + The return value is false if an error occured. + </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>. + </para> + </refsect1> + </refentry> + + <refentry id="function.DomDocument-create-comment"> + <refnamediv> + <refname>DomDocument->create_comment</refname> + <refpurpose> + æ°è¦ã³ã¡ã³ããã¼ãã使ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>DomDocument->create_comment</methodname> + <methodparam><type>string</type><parameter>content</parameter></methodparam> + </methodsynopsis> + <para> + This function returns a new instance of class + <classname>DomComment</classname>. The content of the comment 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>. + </para> + <para> + The return value is false if an error occured. + </para> + <para> + See also <function>DomNode_append_child</function>, + <function>DomDocument_create_element</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> + + <refentry id="function.DomDocument-create-cdata-section"> + <refnamediv> + <refname>DomDocument->create_cdata_section</refname> + <refpurpose> + æ°è¦cdataãã¼ãã使ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>string</type><methodname>DomDocument->create_cdata_section</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 cdata 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>. + </para> + <para> + The return value is false if an error occured. + </para> + <para> + See also <function>DomNode_append_child</function>, + <function>DomDocument_create_element</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> + + <refentry id="function.DomDocument-create-processing-instruction"> + <refnamediv> + <refname>DomDocument->create_processing_instruction</refname> + <refpurpose> + æ°è¦PIãã¼ãã使ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>string</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>. + </para> + <para> + The return value is false if an error occured. + </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>. + </para> + </refsect1> + </refentry> + + <refentry id="function.DomDocument-create-attribute"> + <refnamediv> + <refname>DomDocument->create_attribute</refname> + <refpurpose> + æ°è¦å±æ§ã使ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>DomDocument->create_attribute</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + <methodparam><type>string</type><parameter>value</parameter></methodparam> + </methodsynopsis> + <para> + This function returns a new instance of class + <classname>DomAttribute</classname>. The name of the attribute is the + value of the first parameter. The value of the attribute is the value of + the second parameter. This node will not show up in the + document unless it is inserted with e.g. + <function>DomNode_append_child</function>. + </para> + <para> + The return value is false if an error occured. + </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_entity_reference</function>, + <function>DomNode_insert_before</function>. + </para> + </refsect1> + </refentry> + + <refentry id="function.DomDocument-create-entity-reference"> + <refnamediv> + <refname>DomDocument->create_entity_reference</refname> + <refpurpose> + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</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>. + </para> + <para> + The return value is false if an error occured. + </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>. + </para> + </refsect1> + </refentry> + + <refentry id="function.DomDocument-get-elements-by-tagname"> + <refnamediv> + <refname>DomDocument->get_elements_by_tagname</refname> + <refpurpose> + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>array</type><methodname>DomDocument->get_elements_by_tagname</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + </methodsynopsis> + <para> + </para> + <para> + <function>DomDocument_add_root</function>ãåç §ä¸ããã + </para> + </refsect1> + </refentry> - <!-- class Dtd - --> + <refentry id="function.DomDocument-get-element-by-id"> + <refnamediv> + <refname>DomDocument->get_element_by_id</refname> + <refpurpose> + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>DomDocument->get_element_by_id</methodname> + <methodparam><type>string</type><parameter>id</parameter></methodparam> + </methodsynopsis> + <para> + </para> + <para> + <function>DomDocument_add_root</function>ãåç §ä¸ããã + </para> + </refsect1> + </refentry> + + <!-- End of class DomDocument --> + + <refentry id="function.DomDocument-add-root"> + <refnamediv> + <refname>DomDocument->add_root [deprecated]</refname> + <refpurpose> + ã«ã¼ããã¼ãã追å ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>resource</type><methodname>DomDocument->add_root</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + </methodsynopsis> + &warn.experimental.func; + <para> + Adds a root element node to a dom document and returns the new node. + The element name is given in the passed parameter. + </para> + <para> + <example> + <title>Creating a simple HTML document header</title> + <programlisting role="php"> +<![CDATA[ +<?php +$doc = domxml_new_doc("1.0"); +$root = $doc->add_root("HTML"); +$head = $root->new_child("HEAD", ""); +$head->new_child("TITLE", "Hier der Titel"); +echo htmlentities($doc->dump_mem()); +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + </refentry> + + <refentry id="function.DomDocument-dump-mem"> + <refnamediv> + <refname>DomDocument->dump_mem</refname> + <refpurpose> + å é¨XMLããªã¼ãæååã«ãã³ããã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>string</type><methodname>DomDocument->dump_mem</methodname> + <methodparam choice="opt"><type>bool</type><parameter>format</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. + </para> + <para> + <example> + <title>Creating a simple HTML document header</title> + <programlisting role="php"> +<![CDATA[ +<?php +$doc = domxml_new_doc("1.0"); +$root = $doc->create_element("HTML"); +$root = $doc->append_child($root); +$head = $doc->create_element("HEAD"); +$head = $root->append_child($head); +$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->dump_mem(true)); +echo "</PRE>"; +?> +]]> + </programlisting> + </example> + </para> + <note> + <para> + The first parameter was added in PHP 4.3.0. + </para> + </note> + <para> + See also <function>DomDocument_dump_file</function>, + <function>DomDocument_html_dump_mem</function>. + </para> + </refsect1> + </refentry> + + <refentry id="function.DomDocument-dump-file"> + <refnamediv> + <refname>DomDocument->dump_file</refname> + <refpurpose> + å é¨XMLããªã¼ããã¡ã¤ã«ã«ãã³ããã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>string</type><methodname>DomDocument->dump_file</methodname> + <methodparam><type>string</type><parameter>filename</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>compressionmode</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>format</parameter></methodparam> + </methodsynopsis> + <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. The first parameter specifies the name of the + filename and the second parameter, whether it should be compressed or not. + </para> + <para> + <example> + <title>Creating a simple HTML document header</title> + <programlisting role="php"> +<![CDATA[ +<?php +$doc = domxml_new_doc("1.0"); +$root = $doc->create_element("HTML"); +$root = $doc->append_child($root); +$head = $doc->create_element("HEAD"); +$head = $root->append_child($head); +$title = $doc->create_element("TITLE"); +$title = $head->append_child($title); +$text = $doc->create_text_node("This is the title"); +$text = $title->append_child($text); +$doc->dump_file("/tmp/test.xml", false, true); +?> +]]> + </programlisting> + </example> + </para> + <para> + See also <function>DomDocument_dump_mem</function> + <function>DomDocument_html_dump_mem</function>. + </para> + </refsect1> + </refentry> + + <refentry id="function.DomDocument-html-dump-mem"> + <refnamediv> + <refname>DomDocument->html_dump_mem</refname> + <refpurpose> + HTMLã¨ãã¦æååã«å é¨XMLããªã¼ããã³ããã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <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. + </para> + <para> + <example> + <title>Creating a simple HTML document header</title> + <programlisting role="php"> +<![CDATA[ +<?php +$doc = domxml_new_doc("1.0"); +$root = $doc->create_element("HTML"); +$root = $doc->append_child($root); +$head = $doc->create_element("HEAD"); +$head = $root->append_child($head); +$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>"; +?> +]]> + </programlisting> + </example> + </para> + <para> + See also <function>DomDocument_dump_file</function>, + <function>DomDocument_html_dump_mem</function>. + </para> + </refsect1> + </refentry> + + <!-- Start of class DomElement --> + + <refentry id='function.DomElement-tagname'> + <refnamediv> + <refname>DomElement->tagname</refname> + <refpurpose> + è¦ç´ åãè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>string</type><methodname>DomElement->tagname</methodname> + <void/> + </methodsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.DomElement-get-attribute'> + <refnamediv> + <refname>DomElement->get_attribute</refname> + <refpurpose> + 屿§ã®å¤ãè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>DomElement->get_attribute</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + </methodsynopsis> + <para> + Returns the attribute with name <parameter>name</parameter> of the + current node. + </para> + <para> + See also <function>DomElement_set_attribute</function> + </para> + </refsect1> + </refentry> + + <refentry id='function.DomElement-set-attribute'> + <refnamediv> + <refname>DomElement->set_attribute</refname> + <refpurpose> + æ°è¦å±æ§ã追å ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>bool</type><methodname>DomElement->set_attribute</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + <methodparam><type>string</type><parameter>value</parameter></methodparam> + </methodsynopsis> + <para> + Sets an attribute with name <parameter>name</parameter> ot the given + value. If the attribute does not exist, it will be created. + </para> + <para> + <example> + <title>屿§ãè¨å®ãã</title> + <programlisting role="php"> +<![CDATA[ +<?php +$doc = domxml_new_doc("1.0"); +$node = $doc->create_element("para"); +$newnode = $doc->append_child($node); +$newnode->set_attribute("align", "left"); +?> +]]> + </programlisting> + </example> + </para> + <para> + <function>DomElement_get_attribute</function>ãåç §ããã + </para> + </refsect1> + </refentry> + + <refentry id='function.DomElement-get-attribute-node'> + <refnamediv> + <refname>DomElement->get_attribute_node</refname> + <refpurpose> + 屿§ã®å¤ãè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>DomElement->get_attribute_node</methodname> + <methodparam><type>object</type><parameter>attr</parameter></methodparam> + </methodsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.DomElement-set-attribute-node'> + <refnamediv> + <refname>DomElement->set_attribute_node</refname> + <refpurpose> + æ°è¦å±æ§ãè¨å®ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>bool</type><methodname>DomElement->set_attribute_node</methodname> + <methodparam><type>object</type><parameter>attr</parameter></methodparam> + </methodsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.DomElement-remove-attribute'> + <refnamediv> + <refname>DomElement->remove_attribute</refname> + <refpurpose> + 屿§ãåé¤ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>bool</type><methodname>DomElement->remove_attribute</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + </methodsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.DomElement-get-elements-by-tagname'> + <refnamediv> + <refname>DomElement->get_elements_by_tagname</refname> + <refpurpose> + ã¿ã°åã«ããè¦ç´ ãåå¾ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>bool</type><methodname>DomElement->get_elements_by_tagname</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + </methodsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.DomElement-has-attribute'> + <refnamediv> + <refname>DomElement->has_attribute</refname> + <refpurpose> + 屿§ããããã©ããã調ã¹ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>bool</type><methodname>DomElement->has_attribute</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + </methodsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <!-- End of class DomElement --> + + <!-- Start of class DomNode --> + + <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> + + <refentry id='function.DomNode-node-name'> + <refnamediv> + <refname>DomNode->node_name</refname> + <refpurpose> + ãã¼ãåãè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>string</type><methodname>DomNode->node_name</methodname> + <void/> + </methodsynopsis> + <para> + Returns name of the node. The name has different meanings + for the different types of nodes as illustrated in the following table. + <table> + <title>Meaning of value</title> + <tgroup cols="2"> + <thead> + <row> + <entry>Type</entry> + <entry>Meaning</entry> + </row> + </thead> + <tbody> + <row> + <entry>DomAttribute</entry> + <entry>value of attribute</entry> + </row> + <row> + <entry>DomAttribute</entry> + <entry></entry> + </row> + <row> + <entry>DomCDataSection</entry> + <entry>#cdata-section</entry> + </row> + <row> + <entry>DomComment</entry> + <entry>#comment</entry> + </row> + <row> + <entry>DomDocument</entry> + <entry>#document</entry> + </row> + <row> + <entry>DomDocumentType</entry> + <entry>document type name</entry> + </row> + <row> + <entry>DomElement</entry> + <entry>tag name</entry> + </row> + <row> + <entry>DomEntity</entry> + <entry>name of entity</entry> + </row> + <row> + <entry>DomEntityReference</entry> + <entry>name of entity reference</entry> + </row> + <row> + <entry>DomNotation</entry> + <entry>notation name</entry> + </row> + <row> + <entry>DomProcessingInstruction</entry> + <entry>target</entry> + </row> + <row> + <entry>DomText</entry> + <entry>#text</entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </refsect1> + </refentry> + + <refentry id='function.DomNode-node-value'> + <refnamediv> + <refname>DomNode->node_value</refname> + <refpurpose> + ãã¼ãã®å¤ãè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>string</type><methodname>DomNode->node_value</methodname> + <void/> + </methodsynopsis> + <para> + Returns value of the node. The value has different meanings + for the different types of nodes as illustrated in the following table. + <table> + <title>Meaning of value</title> + <tgroup cols="2"> + <thead> + <row> + <entry>Type</entry> + <entry>Meaning</entry> + </row> + </thead> + <tbody> + <row> + <entry>DomAttribute</entry> + <entry>value of attribute</entry> + </row> + <row> + <entry>DomAttribute</entry> + <entry></entry> + </row> + <row> + <entry>DomCDataSection</entry> + <entry>content</entry> + </row> + <row> + <entry>DomComment</entry> + <entry>content of comment</entry> + </row> + <row> + <entry>DomDocument</entry> + <entry>null</entry> + </row> + <row> + <entry>DomDocumentType</entry> + <entry>null</entry> + </row> + <row> + <entry>DomElement</entry> + <entry>null</entry> + </row> + <row> + <entry>DomEntity</entry> + <entry>null</entry> + </row> + <row> + <entry>DomEntityReference</entry> + <entry>null</entry> + </row> + <row> + <entry>DomNotation</entry> + <entry>null</entry> + </row> + <row> + <entry>DomProcessingInstruction</entry> + <entry>entire content without target</entry> + </row> + <row> + <entry>DomText</entry> + <entry>content of text</entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </refsect1> + </refentry> + + <refentry id='function.DomNode-node-type'> + <refnamediv> + <refname>DomNode->node_type</refname> + <refpurpose> + ãã¼ãã®åãè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>int</type><methodname>DomNode->node_type</methodname> + <void/> + </methodsynopsis> + <para> + Returns the type of the node. All possible types are listed in + the table in the introduction. + </para> + </refsect1> + </refentry> + + <refentry id='function.DomNode-last-child'> + <refnamediv> + <refname>DomNode->last_child</refname> + <refpurpose> + æå¾ã®åãã¼ããè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>DomNode->last_child</methodname> + <void/> + </methodsynopsis> + <para> + Returns the last child of the node. + </para> + <para> + See also <function>DomNode_first_child</function>, + <function>DomNode_next_sibling</function>, + <function>DomNode_previous_sibling</function>. + </para> + </refsect1> + </refentry> + + <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> + + <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> + + <refentry id='function.DomNode-previous-sibling'> + <refnamediv> + <refname>DomNode->previous_sibling</refname> + <refpurpose> + åã®å å¼ãã¼ããè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>DomNode->previous_sibling</methodname> + <void/> + </methodsynopsis> + <para> + This function returns the previous sibling of the current node. + </para> + <para> + See also <function>DomNode_next_sibling</function>. + </para> + </refsect1> + </refentry> + + <refentry id='function.DomNode-next-sibling'> + <refnamediv> + <refname>DomNode->next_sibling</refname> + <refpurpose> + 次ã®å å¼ãã¼ããè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>DomNode->next_sibling</methodname> + <void/> + </methodsynopsis> + <para> + This function returns the next sibling of the current node. If there is + no next sibling it returns false. You can use this function to iterate + over all children of a node as shown in the example. + </para> + <para> + <example> + <title>Iterate over children</title> + <programlisting role="php"> +<![CDATA[ +<?php +include("example.inc"); + +if(!$dom = domxml_open_mem($xmlstr)) { + echo "Error while parsing the document\n"; + exit; +} + +$elements = $dom->get_elements_by_tagname("tbody"); +$element = $elements[0]; +$child = $element->first_child(); + +while($child) { + print_r($child); + $child = $child->next_sibling(); +} +?> +]]> + </programlisting> + </example> + </para> + <para> + See also <function>DomNode_previous_sibling</function>. + </para> + </refsect1> + </refentry> + + <refentry id='function.DomNode-parent-node'> + <refnamediv> + <refname>DomNode->parent_node</refname> + <refpurpose> + 親ãã¼ããè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>DomNode->parent_node</methodname> + <void/> + </methodsynopsis> + <para> + This function returns the parent node. + </para> + <para> + The following example will show two identical lists of children. + <example> + <title>Finding the document of a node</title> + <programlisting role="php"> +<![CDATA[ +<?php +$doc = domxml_new_doc("1.0"); +$node = $doc->create_element("para"); +$node = $doc->append_child($node); +$children = $doc->children(); +print_r($children); + +$doc2 = $node->parent_node(); +$children = $doc2->children(); +print_r($children); +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + </refentry> + + <refentry id='function.DomNode-owner-document'> + <refnamediv> + <refname>DomNode->owner_document</refname> + <refpurpose> + ãã®ãã¼ããå±ããããã¥ã¡ã³ããè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>DomNode->owner_document</methodname> + <void/> + </methodsynopsis> + <para> + This function returns the document the current node belongs to. + </para> + <para> + The following example will create two identical lists of children. + <example> + <title>Finding the document of a node</title> + <programlisting role="php"> +<![CDATA[ +<?php +$doc = domxml_new_doc("1.0"); +$node = $doc->create_element("para"); +$node = $doc->append_child($node); +$children = $doc->children(); +print_r($children); + +$doc2 = $node->owner_document(); +$children = $doc2->children(); +print_r($children); +?> +]]> + </programlisting> + </example> + </para> + <para> + See also <function>DomNode_insert_before</function>. + </para> + </refsect1> + </refentry> + + <refentry id='function.DomNode-insert-before'> + <refnamediv> + <refname>DomNode->insert_before</refname> + <refpurpose> + æ°è¦ãã¼ããåãã¼ãã¨ãã¦æ¿å ¥ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>DomNode->insert_before</methodname> + <methodparam><type>object</type><parameter>newnode</parameter></methodparam> + <methodparam><type>object</type><parameter>refnode</parameter></methodparam> + </methodsynopsis> + <para> + This function inserts the new node <parameter>newnode</parameter> right + before the node <parameter>refnode</parameter>. The return value is the + inserted node. If you plan to do further modifications on the appended + child you must use the returned node. + </para> + <para> + <function>DomNode_insert_before</function> is very similar to + <function>DomNode_append_child</function> as the following example shows + which does the same as the example at + <function>DomNode_append_child</function>. + </para> + <para> + <example> + <title>Adding a child</title> + <programlisting role="php"> +<![CDATA[ +include("example.inc"); + +if(!$dom = domxml_open_mem($xmlstr)) { + echo "Error while parsing the document\n"; + exit; +} + +$elements = $dom->get_elements_by_tagname("informaltable"); +print_r($elements); +$element = $elements[0]; + +$newnode = $element->insert_before($element, $element); +$children = $newnode->children(); +$attr = $children[1]->set_attribute("align", "left"); + +echo "<PRE>"; +$xmlfile = $dom->dump_mem(); +echo htmlentities($xmlfile); +echo "</PRE>"; +]]> + </programlisting> + </example> + </para> + <para> + See also <function>DomNode_append_child</function>. + </para> + </refsect1> + </refentry> + + <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"> +<![CDATA[ +<?php +$doc = domxml_new_doc("1.0"); +$node = $doc->create_element("para"); +$newnode = $doc->append_child($node); +$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"> +<![CDATA[ +<?php +$doc = domxml_new_doc("1.0"); +$node = $doc->create_element("para"); +$node->set_attribute("align", "left"); +$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"> +<![CDATA[ +<?php +include("example.inc"); + +if(!$dom = domxml_open_mem($xmlstr)) { + echo "Error while parsing the document\n"; + exit; +} + +$elements = $dom->get_elements_by_tagname("informaltable"); +print_r($elements); +$element = $elements[0]; + +$parent = $element->parent_node(); +$newnode = $parent->append_child($element); +$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> + + <refentry id='function.DomNode-remove-child'> + <refnamediv> + <refname>DomNode->remove_child</refname> + <refpurpose> + åãã¼ãã®ãªã¹ãããåãã¼ããåé¤ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>object</type><methodname>DomNode->remove_child</methodname> + <methodparam><type>object</type><parameter>oldchild</parameter></methodparam> + </methodsynopsis> + <para> + This functions removes a child from a list of children. If child cannot + be removed or is not a child the function will return false. + If the child could be removed the functions returns the old child. + </para> + <para> + <example> + <title>Removing a child</title> + <programlisting role="php"> +<![CDATA[ +<?php +include("example.inc"); + +if(!$dom = domxml_open_mem($xmlstr)) { + echo "Error while parsing the document\n"; + exit; +} + +$elements = $dom->get_elements_by_tagname("tbody"); +$element = $elements[0]; +$children = $element->child_nodes(); +$child = $element->remove_child($children[0]); + +echo "<PRE>"; +$xmlfile = $dom->dump_mem(true); +echo htmlentities($xmlfile); +echo "</PRE>"; +?> +]]> + </programlisting> + </example> + </para> + <para> + See also <function>DomNode_append_child</function>. + </para> + </refsect1> + </refentry> + + <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> + + <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> - <refentry id="function.xmldoc"> + <refentry id='function.DomNode-prefix'> <refnamediv> - <refname>xmldoc</refname> - <refpurpose>XMLããã¥ã¡ã³ãã®DOMãªãã¸ã§ã¯ãã使ãã</refpurpose> + <refname>DomNode->prefix</refname> + <refpurpose> + ãã¼ãã®ååç©ºéæ¥é è¾ãè¿ã + </refpurpose> </refnamediv> <refsect1> <title>説æ</title> - <methodsynopsis> - <type>object</type><methodname>xmldoc</methodname> - <methodparam><type>string</type><parameter>str</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>string</type><methodname>DomNode->prefix</methodname> + <void/> + </methodsynopsis> <para> - ãã®é¢æ°ã¯ã<parameter>str</parameter>ã®XMLããã¥ã¡ã³ããå¦çãã - ã¯ã©ã¹"Dom document"ã®ãªãã¸ã§ã¯ããè¿ãã¾ãããã®ãªãã¸ã§ã¯ã㯠- ä¸ã®ãªã¹ãã«ç¤ºããããããã£ãæãã¦ãã¾ãã + Returns the name space prefix of the node. </para> - <simpara> - <function>xmldocfile</function>ãåç §ä¸ããã - </simpara> </refsect1> </refentry> - <refentry id="function.xmldocfile"> + <refentry id='function.DomNode-clone-node'> <refnamediv> - <refname>xmldocfile</refname> - <refpurpose>XMLãã¡ã¤ã«ããDOMãªãã¸ã§ã¯ãã使ãã</refpurpose> + <refname>DomNode->clone_node</refname> + <refpurpose> + ãã¼ãã®è¤è£½ãä½ã + </refpurpose> </refnamediv> <refsect1> <title>説æ</title> - <methodsynopsis> - <type>object</type><methodname>xmldocfile</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>object</type><methodname>DomNode->clone_node</methodname> + <void/> + </methodsynopsis> <para> - ãã®é¢æ°ã¯ã<parameter>filename</parameter>ã¨ããååã®XMLãã㥠- ã¡ã³ããè§£éããã¯ã©ã¹"Dom document"ã®ãªãã¸ã§ã¯ããè¿ãã¾ãã - ã¯ã©ã¹"Dom document"ã®ãªãã¸ã§ã¯ããè¿ãã¾ãããã®ãªãã¸ã§ã¯ã㯠- ä¸ã®ãªã¹ãã«ç¤ºããããããã£ãæãã¦ãã¾ãããã¡ã¤ã«ã¯èªã¿è¾¼ã¿ã® - ã¿å¯è½ã§ãã + &warn.undocumented.func; </para> - <simpara> - <function>xmldoc</function>ãåç §ä¸ããã - </simpara> </refsect1> </refentry> - <refentry id="function.xmltree"> + <refentry id='function.DomNode-unlink-node'> <refnamediv> - <refname>xmltree</refname> + <refname>DomNode->unlink_node</refname> <refpurpose> - XMLããã¥ã¡ã³ãããPHPãªãã¸ã§ã¯ãã®ããªã¼ã使ãã + ãã¼ããåé¤ãã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> - <methodsynopsis> - <type>object</type><methodname>xmltree</methodname> - <methodparam><type>string</type><parameter>str</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>object</type><methodname>DomNode->unlink_node</methodname> + <void/> + </methodsynopsis> <para> - ãã®é¢æ°ã¯ã<parameter>str</parameter>ã®XMLããã¥ã¡ã³ãããã¼ã¹ãã - ãã¼ã¹æ¸ã®ããã¥ã¡ã³ãã¨ãã¦PHPãªãã¸ã§ã¯ãã®ããªã¼ãè¿ãã¾ããä» - ã®é¢æ°ã¯ãã®ããªã¼ã«ã¯ã¢ã¯ã»ã¹ã§ããªãããããã®é¢æ°ã¯ä»ã®é¢æ°ã¨ - ç°ãªã£ã¦ãã¾ããä¾ãã°ãã¼ãã追å ããæã®ããã«ããã®ããªã¼ãä¿® - æ£ãããã¨ã«ã¯ãç¾å¨XMLãã¡ã¤ã«ã¨ãã¦ããªã¼ããã³ãããææ®µããªã - ããæå³ãããã¾ããããã®é¢æ°ã¯ããã¡ã¤ã«ãèªã¿è¾¼ãã§å®æ°ã調㹠- ããå ´åã«ã¯æç¨ã§ãã + &warn.undocumented.func; </para> </refsect1> </refentry> - <refentry id="function.domxml-root"> + <refentry id='function.DomNode-replace-node'> <refnamediv> - <refname>domxml_root</refname> + <refname>DomNode->replace_node</refname> <refpurpose> - ããã¥ã¡ã³ãã®ã«ã¼ããã¼ããè¿ã + ãã¼ããç½®æãã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> - <methodsynopsis> - <type>object</type><methodname>domxml_root</methodname> - <methodparam><type>object</type><parameter>doc</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>object</type><methodname>DomNode->replace_node</methodname> + <void/> + </methodsynopsis> <para> - <function>domxml_root</function> ã¯å¼æ°ã¨ãã¦ã¯ã©ã¹ã®ãªãã¸ã§ã¯ã - "Dom document"ãã¨ããã«ã¼ãè¦ç´ ãã¼ããè¿ãã¾ããç¾å¨ãã³ã¡ã³ã - ã®ãããªä»ã®ãã¼ãã¯ç¡è¦ããã¾ãã + &warn.undocumented.func; </para> - <para> - 以ä¸ã®ä¾ã¯ãåå CHAPTER ã§è¦ç´ ãæããè¦ç´ ã ããè¿ãããããåºå - ãã¾ãããã®ä»ã®ã«ã¼ããã¼ãã§ããã³ã¡ã³ãã¯è¿ããã¾ããã - <example> - <title>ã«ã¼ãè¦ç´ ãåå¾ãã</title> - <programlisting role="php"> -<![CDATA[ -<?php -$xmlstr = "<?xml version='1.0' standalone='yes'?> -<!DOCTYPE chapter SYSTEM '/share/sgml/Norman_Walsh/db3xml10/db3xml10.dtd' -[ <!ENTITY sp \"spanish\"> -]> -<!-- lsfj --> -<chapter language='en'><title language='en'>Title</title> - <para language='ge'> - &sp; - <!-- comment --> - <informaltable language='&sp;'> - <tgroup cols='3'> - <tbody> - <row><entry>a1</entry><entry -morerows='1'>b1</entry><entry>c1</entry></row> -<row><entry>a2</entry><entry>c2</entry></row> - <row><entry>a3</entry><entry>b3</entry><entry>c3</entry></row> - </tbody> - </tgroup> - </informaltable> - </para> -</chapter>"; + </refsect1> + </refentry> -if(!$dom = xmldoc($xmlstr)) { - echo "Error while parsing the document\n"; - exit; -} + <refentry id='function.DomNode-set-content'> + <refnamediv> + <refname>DomNode->set_content</refname> + <refpurpose> + ãã¼ãã®ã³ã³ãã³ããè¨å®ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>bool</type><methodname>DomNode->set_content</methodname> + <void/> + </methodsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> -$root = $dom->root(); -/* or $root = domxml_root($dom); */ -print_r($root); -?> -]]> - </programlisting> - </example> + <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> - <refentry id="function.domxml-add-root"> + <refentry id='function.DomNode-dump-node'> <refnamediv> - <refname>domxml_add_root</refname> + <refname>DomNode->dump_node</refname> <refpurpose> - ããã¥ã¡ã³ãã«ã«ã¼ããã¼ãã追å ãã + ãã¼ããï¼ã¤ãã³ããã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> - <methodsynopsis> - <type>resource</type><methodname>domxml_add_root</methodname> - <methodparam><type>resource</type><parameter>doc</parameter></methodparam> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>string</type><methodname>DomNode->dump_node</methodname> + <void/> + </methodsynopsis> <para> - DOMããã¥ã¡ã³ãã«ã«ã¼ãè¦ç´ ãã¼ãã追å ããæ°è¦ãã¼ããè¿ãã¾ãã - è¦ç´ åã¯ã2çªç®ã®å¼æ°ã¨ãã¦æå®ãã¾ãã + &warn.undocumented.func; </para> <para> - <example> - <title>ç°¡åãªHTMLããã¥ã¡ã³ããããã使ãã</title> - <programlisting role="php"> -<![CDATA[ -<?php -$doc = new_xmldoc("1.0"); -$root = $doc->add_root("HTML"); -$head = $root->new_child("HEAD", ""); -$head->new_child("TITLE", "Hier der Titel"); -echo $doc->dumpmem(); -?> -]]> - </programlisting> - </example> + See also <function>DomDocument_dump_mem</function>. </para> </refsect1> </refentry> - <refentry id="function.domxml-dumpmem"> + <refentry id='function.DomNode-set-name'> <refnamediv> - <refname>domxml_dumpmem</refname> + <refname>DomNode->set_name</refname> <refpurpose> - ããã¥ã¡ã³ããæååã«ãã³ããã + ãã¼ãã®ååãè¨å®ãã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> - <methodsynopsis> - <type>string</type><methodname>domxml_dumpmem</methodname> - <methodparam><type>resource</type><parameter>doc</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>bool</type><methodname>DomNode->set_name</methodname> + <void/> + </methodsynopsis> <para> - DOM表ç¾ããXMLããã¥ã¡ã³ãã使ãã¾ãããã®é¢æ°ã¯ãé常ã - <function>domxml_add_root</function> ã®ä¾ã®ããã«æåããæ°è¦ã« - DOMããã¥ã¡ã³ããæ§ç¯ããå¾ã«ã³ã¼ã«ããã¾ãã + Sets name of node. </para> <para> - <function>domxml_add_root</function>ãåç §ä¸ããã + See also <function>DomNode_node_name</function>. </para> </refsect1> </refentry> - <refentry id="function.domxml-attributes"> + <refentry id='function.DomNode-is-blank-node'> <refnamediv> - <refname>domxml_attributes</refname> + <refname>DomNode->is_blank_node</refname> <refpurpose> - æå®ãããã¼ãã®å±æ§ã®ãªã¹ããè¿ã + ãã¼ãã空ãã©ãã調ã¹ã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> - <methodsynopsis> - <type>array</type><methodname>domxml_attributes</methodname> - <methodparam><type>resource</type><parameter>node</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>bool</type><methodname>DomNode->is_blank_node</methodname> + <void/> + </methodsynopsis> <para> - "dom attribute"åã®ãªãã¸ã§ã¯ãã®é åã¨ãã¦ãã¼ãã®å ¨ã¦ã®å±æ§ãè¿ - ãã¾ãã + &warn.undocumented.func; </para> </refsect1> </refentry> - <refentry id="function.domxml-get-attribute"> + <!-- End of class DomNode --> + + <!-- Start of class DomAttribute --> + + <refentry id='function.DomAttribute-name'> <refnamediv> - <refname>domxml_get_attribute</refname> + <refname>DomAttribute->name</refname> <refpurpose> - æå®ãããã¼ãã®å±æ§ã®å¤ãè¿ã + 屿§ã®ååãè¿ã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> - <methodsynopsis> - <type>object</type><methodname>domxml_get_attribute</methodname> - <methodparam><type>resource</type><parameter>node</parameter></methodparam> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>bool</type><methodname>DomAttribute->name</methodname> + <void/> + </methodsynopsis> <para> - ãã®é¢æ°ã¯ãæå®ããåå<parameter>name</parameter>ã®å¤ãè¿ãã¾ãã + This function returns the name of the attribute. + </para> + <para> + See also <function>DomAttribute_value</function>. </para> - <simpara> - <function>domxml_set_attribute</function>ãåç §ä¸ããã - </simpara> </refsect1> </refentry> - <refentry id="function.domxml-set-attribute"> + <refentry id='function.DomAttribute-value'> <refnamediv> - <refname>domxml_set_attribute</refname> + <refname>DomAttribute->value</refname> <refpurpose> - æå®ãã屿§ã®å¤ãè¨å®ãã + 屿§ã®å¤ãè¿ã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> - <methodsynopsis> - <type>object</type><methodname>domxml_set_attribute</methodname> - <methodparam><type>resource</type><parameter>node</parameter></methodparam> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>string</type><parameter>value</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>bool</type><methodname>DomAttribute->value</methodname> + <void/> + </methodsynopsis> <para> - æå®ãããã¼ãã®åå <parameter>name</parameter> ãæãã屿§ã«å¤ - ãè¨å®ãã¾ãã + This function returns the value of the attribute. </para> <para> - <function>domxml_add_root</function> ãä¾ã«ã¨ãã¨ããã®ä¾ã§ã¯ãã¼ - ãã®ã¯ã©ã¹ã®é¢æ° <function>set_attribute</function> ãåã«ã³ã¼ã« - ãããã¨ã«ãããHEADè¦ç´ ã«å±æ§ã追å ãã¦ãã¾ãã - <example> - <title>è¦ç´ ã«å±æ§ã追å ãã</title> - <programlisting role="php"> -<![CDATA[ -<?php -$doc = new_xmldoc("1.0"); -$root = $doc->add_root("HTML"); -$head = $root->new_child("HEAD", ""); -$head->new_child("TITLE", "Hier der Titel"); -$head->set_attribute("Language", "ge"); -echo $doc->dumpmem(); -?> -]]> - </programlisting> - </example> + See also <function>DomAttribute_name</function>. </para> </refsect1> </refentry> - <refentry id="function.domxml-children"> + <refentry id='function.DomAttribute-specified'> <refnamediv> - <refname>domxml_children</refname> + <refname>DomAttribute->specified</refname> <refpurpose> - åãã¼ãã®ãªã¹ããè¿ã + 屿§ãæå®ããã¦ãããã©ãã調ã¹ã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> - <methodsynopsis> - <type>array</type><methodname>domxml_children</methodname> - <methodparam><type>object</type><parameter>doc|node</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>bool</type><methodname>DomAttribute->specified</methodname> + <void/> + </methodsynopsis> <para> - ãã¼ãã®é åã¨ãã¦ãã¼ãã®å ¨ã¦ã®åãã¼ããè¿ãã¾ãã - </para> - <para> - 以ä¸ã®ä¾ã§ã¯ã夿° <varname>children</varname> ã«ã¯ XML_ELEMENT - åã®ãã¼ãã®ä¸ã¤ãæããé åãå«ã¾ãã¾ãããã®ãã¼ãã¯TITLEè¦ç´ ã§ - ãã - <example> - <title>è¦ç´ ã«å±æ§ã追å ãã</title> - <programlisting role="php"> -<![CDATA[ -<?php -$doc = new_xmldoc("1.0"); -$root = $doc->add_root("HTML"); -$head = $root->new_child("HEAD", ""); -$head->new_child("TITLE", "Hier der Titel"); -$head->set_attribute("Language", "ge"); -$children = $head->children(); -?> -]]> - </programlisting> - </example> + Check DOM standard for a detailed explanation. </para> </refsect1> </refentry> - <refentry id="function.domxml-new-child"> + <!-- End of class DomAttribute --> + + <!-- Start of class DomDocumentType --> + + <refentry id='function.DomDocumentType-name'> <refnamediv> - <refname>domxml_new_child</refname> + <refname>DomDocumentType->name</refname> <refpurpose> - 親ãã¼ãã«åãã¼ãã追å ãã + ããã¥ã¡ã³ãã®ååãè¿ã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> - <methodsynopsis> - <type>resource</type><methodname>domxml_new_child</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>string</type><parameter>content</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>string</type><methodname>DomDocumentType->name</methodname> + <void/> + </methodsynopsis> <para> - ãã¼ãã«æ°è¦ã«åãã¼ãã追å ããè¿ãã¾ãã + This function returns the name of the document type. </para> </refsect1> </refentry> - <refentry id="function.domxml-new-xmldoc"> + <refentry id='function.DomDocumentType-entities'> <refnamediv> - <refname>domxml_new_xmldoc</refname> + <refname>DomDocumentType->entities</refname> <refpurpose> - æ°è¦ã«ç©ºã®ããã¥ã¡ã³ãã使ãã + ã¨ã³ããªã®ãªã¹ãè¿ã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> - <methodsynopsis> - <type>object</type><methodname>domxml_new_xmldoc</methodname> - <methodparam><type>string</type><parameter>version</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>array</type><methodname>DomDocumentType->entities</methodname> + <void/> + </methodsynopsis> <para> - æåããæ°è¦DOMããã¥ã¡ã³ãã使ããè¿ãã¾ãã + &warn.undocumented.func; </para> + </refsect1> + </refentry> + + <refentry id='function.DomDocumentType-notations'> + <refnamediv> + <refname>DomDocumentType->notations</refname> + <refpurpose> + ãã¼ãã¼ã·ã§ã³ã®ãªã¹ããè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>array</type><methodname>DomDocumentType->notations</methodname> + <void/> + </methodsynopsis> <para> - <function>domxml_add_root</function>ãåç §ä¸ããã + &warn.undocumented.func; </para> </refsect1> </refentry> - <refentry id="function.xpath_new_context"> + <refentry id='function.DomDocumentType-public-id'> <refnamediv> - <refname>xpath_new_context</refname> + <refname>DomDocumentType->public_id</refname> <refpurpose> - xpath ã³ã³ããã¹ããæ°è¦ã«ä½æãã + document typeã®public IDãè¿ã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> - <methodsynopsis> - <type>object</type><methodname>xpath_new_context</methodname> - <methodparam><type>object</type><parameter>dom document</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>string</type><methodname>DomDocumentType->public_id</methodname> + <void/> + </methodsynopsis> <para> + This function returns the public id of the document type. </para> <para> - See also <function></function> + The following example echos nothing. + <example> + <title>Retrieving the public id</title> + <programlisting role="php"> +<![CDATA[ +<?php +include("example.inc"); + +if(!$dom = domxml_open_mem($xmlstr)) { + echo "Error while parsing the document\n"; + exit; +} + +$doctype = $dom->doctype(); +echo $doctype->public_id(); +?> +]]> + </programlisting> + </example> </para> </refsect1> </refentry> - <refentry id="function.xpath_eval"> + <refentry id='function.DomDocumentType-system-id'> <refnamediv> - <refname>xpath_eval</refname> + <refname>DomDocumentType->system_id</refname> <refpurpose> - xpath å¼ãè©ä¾¡ãã + document typeã®system IDãè¿ã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> - <methodsynopsis> - <type>array</type><methodname>xpath_eval</methodname> - <methodparam><type>object</type><parameter>xpath context</parameter></methodparam> - </methodsynopsis> - &warn.experimental.func; + <methodsynopsis> + <type>string</type><methodname>DomDocumentType->system_id</methodname> + <void/> + </methodsynopsis> <para> + Returns the system id of the document type. </para> <para> - See also <function></function> + The following example echos + '/share/sgml/Norman_Walsh/db3xml10/db3xml10.dtd'. + <example> + <title>ã·ã¹ãã IDãåå¾ãã</title> + <programlisting role="php"> +<![CDATA[ +<?php +include("example.inc"); + +if(!$dom = domxml_open_mem($xmlstr)) { + echo "Error while parsing the document\n"; + exit; +} + +$doctype = $dom->doctype(); +echo $doctype->system_id(); +?> +]]> + </programlisting> + </example> </para> </refsect1> </refentry> - <refentry id='function.domxml-node'> + <refentry id='function.DomDocumentType-internal-subset'> <refnamediv> - <refname>domxml_node</refname> - <refpurpose>ãã¼ãã使ãã</refpurpose> + <refname>DomDocumentType->internal_subset</refname> + <refpurpose> + å é¨ãµãã»ãããè¿ã + </refpurpose> </refnamediv> <refsect1> <title>説æ</title> - <methodsynopsis> - <type>object</type><methodname>domxml_node</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>bool</type><methodname>DomDocumentType->internal_subset</methodname> + <void/> + </methodsynopsis> <para> &warn.undocumented.func; </para> </refsect1> </refentry> - <refentry id='function.domxml-node-set-content'> + <!-- End of class DomDocumentType --> + + <!-- Start of class DomProcessingInstruction --> + + <refentry id='function.DomProcessingInstruction-target'> <refnamediv> - <refname>domxml_node_set_content</refname> - <refpurpose>ãã¼ãã®å 容ãè¨å®ãã</refpurpose> + <refname>DomProcessingInstruction->target</refname> + <refpurpose> + PIãã¼ãã®ã¿ã¼ã²ãããè¿ã + </refpurpose> </refnamediv> <refsect1> <title>説æ</title> - <methodsynopsis> - <type>bool</type><methodname>domxml_node_set_content</methodname> - <methodparam><type>string</type><parameter>content</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>string</type><methodname>DomProcessingInstruction->target</methodname> + <void/> + </methodsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> + </refentry> + + <refentry id='function.DomProcessingInstruction-data'> + <refnamediv> + <refname>DomProcessingInstruction->data</refname> + <refpurpose> + PIãã¼ãã®ãã¼ã¿ãè¿ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>string</type><methodname>DomProcessingInstruction->data</methodname> + <void/> + </methodsynopsis> <para> &warn.undocumented.func; </para> </refsect1> </refentry> - <refentry id='function.domxml-node-unlink-node'> + <!-- End of class DomProcessingInstruction --> + + <!-- Start of class XPathContext --> + <!-- End of class XPathContext --> + + <refentry id="function.xpath-new-context"> <refnamediv> - <refname>domxml_node_unlink_node</refname> - <refpurpose>ãã¼ããåé¤ãã</refpurpose> + <refname>xpath_new_context</refname> + <refpurpose> + æ°è¦xpathã³ã³ããã¹ãã使ãã + </refpurpose> </refnamediv> <refsect1> <title>説æ</title> <methodsynopsis> - <type>object</type><methodname>domxml_node_unlink_node</methodname> - <void/> + <type>object</type><methodname>xpath_new_context</methodname> + <methodparam><type>object</type><parameter>dom document</parameter></methodparam> </methodsynopsis> + &warn.experimental.func; <para> - &warn.undocumented.func; + </para> + <para> + <function>xpath_eval</function>ãåç §ä¸ããã </para> </refsect1> </refentry> - <refentry id="function.xpath-eval-expression"> + <refentry id="function.xpath-eval"> <refnamediv> - <refname>xpath_eval_expression</refname> + <refname>xpath_eval</refname> <refpurpose> - æå®æååã®XPathãã±ã¼ã·ã§ã³ãã¹ãè©ä¾¡ãã + æå®ããæååã®XPathãã±ã¼ã·ã§ã³ãè©ä¾¡ãã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> <methodsynopsis> <type>array</type><methodname>xpath_eval</methodname> - <methodparam><type>object</type><parameter>xpath_context</parameter></methodparam> + <methodparam><type>object</type><parameter>xpath context</parameter></methodparam> </methodsynopsis> - &warn.experimental.func; + &warn.experimental.func; <para> </para> <para> - See also <function></function> + <function>xpath_new_context</function>ãåç §ä¸ããã </para> </refsect1> </refentry> - <refentry id='function.domxml-version'> + <refentry id="function.xpath-eval-expression"> <refnamediv> - <refname>domxml_version</refname> + <refname>xpath_eval_expression</refname> <refpurpose> - XMLã©ã¤ãã©ãªãã¼ã¸ã§ã³ãåå¾ãã + æå®ããæååã®XPathãã±ã¼ã·ã§ã³å¼ãè©ä¾¡ãã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> <methodsynopsis> - <type>string</type><methodname>domxml_version</methodname> - <void/> + <type>array</type><methodname>xpath_eval_expression</methodname> + <methodparam><type>object</type><parameter>xpath_context</parameter></methodparam> </methodsynopsis> + &warn.experimental.func; <para> - ãã®é¢æ°ã¯ãç¾å¨ä½¿ç¨ãããXMLã©ã¤ãã©ãªã®ãã¼ã¸ã§ã³ãè¿ãã¾ãã + </para> + <para> + <function>xpath_eval</function>ãåç §ä¸ãã </para> </refsect1> </refentry> @@ -924,7 +2913,7 @@ <refnamediv> <refname>xptr_new_context</refname> <refpurpose> - Create new XPath Context + æ°è¦XPathã³ã³ããã¹ãã使ãã </refpurpose> </refnamediv> <refsect1>