This work is distributed under the terms of Perl's Artistic License. Distribution and modification is allowed provided all of the original copyright notices are preserved. All code examples in these files are hereby placed into the public domain. You are permitted and encouraged to use this code in your own programs for fun or for profit as you see fit. Abstract This document aims to provide answe
April 18, 2001 Kip Hampton Introduction A recent flurry of questions to the Perl-XML mailing list points to the need for a document that gives new users a quick, how-to overview of the various Perl XML modules. For the next few months I will be devoting this column solely to that purpose. The XML modules available from CPAN can be divided into three main categories: modules that provide unique int
ãããã®ãã¼ãã¯DOMãã¼ãã¨ã¯ç°ãªããã¨ã«æ³¨æãå¿ è¦ã§ãã å±æ§ãã¼ã(attribute node)ã¯ãåã ãå±ããè¦ç´ ã«å¯¾å¿ããè¦ç´ ãã¼ã(element node)ã親ã¨ããããå½è©²è¦ç´ ãã¼ãã®åã§ã¯ããã¾ãããå±æ§ãã¼ãã¯ãéå§ã¿ã°ã§æ示çã«æå®ãããå±æ§åã³ãããã©ã«ãå¤ãæã¤æ示çã«æå®ããã¦ããªãå±æ§ã«ã¤ãã¦ã®ã¿ãåã ãå±ããè¦ç´ ã親ãã¼ãã¨ãã¦ãããªã¼æ§é ä¸ã®å±æ§ãã¼ãã¨ãªãã¾ããåè¦ç´ ã«ãæå³ãç¶æ¿ãããå±æ§ã®å ´åã¯ãæ示çã«æå®ããã親è¦ç´ ã®ã¿ãå±æ§ãã¼ããåå¨ããç¶æ¿ããåè¦ç´ ã«æ示çã«æå®ããã¦ããªããã°ãå½è©²å±æ§ã®ãã¼ããæã¤ãã¨ã¯ããã¾ããã åå空éãã¼ã(namespace node)ããè¦ç´ ã親ãã¼ãã¨ãããããã®åã§ã¯ããã¾ãããåå空éãã¼ãã¯ãè¦ç´ ãã¼ãã«å¯¾ãã¦ãå½è©²è¦ç´ ãã¼ãåã³ãã®åå«ã®ãã¼ãã®åå空éæ¯ã«ä¸åãã¤çµã³ä»ãããã¾ãã å¦çå½ä»¤(
XMLãã¹è¨èª (XPath) Version 1.0 ãã®ææ¸ã¯ãW3Cã«ããä½æããW3Cå§åã¨ãã¦å ¬éããã¦ãã "XML Path Language (XPath) Version 1.0" (http://www.w3.org/TR/1999/REC-xpath-19991116) ããã©ãç«æ¬èã翻訳ãããã®ã§ãã ãã®ææ¸ã®åæã¯ã¯ã¼ãã³ã°ãã©ããã§ããå°æ¥ã®æ¹è¨ãäºå®ããã¦ãããã¨ã«ã注æãã ãããææ°çã®ä»æ§æ¸ã¯ http://www.w3.org/TR/xpath ã«ããã¾ãã æ£å¼ãªä»æ§æ¸ã¯W3Cãµã¤ãã«ããè±èªçã§ãããã®æ¥æ¬èªçã¯åèã«ããã¾ããã ãã®ææ¸ã«ã¯ç¿»è¨³ä¸ã®èª¤ããããããããã¾ãããã©ãç«æ¬èã¯ç¿»è¨³ã®æ£ç¢ºæ§ãä¿è¨¼ãã¾ãããããã¾ã§ãèªèº«ã®è²¬ä»»ã§ãå©ç¨ãã ããã ãæ°ä»ãã®ç¹ãããã¾ãããã©ãç«æ¬èã¾ã§ãç¥ãããã ããã XMLãã¹è¨èª (XPath)
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}