xpathã¨ã¯ãHTMLã®ãããªæ¨æ§é ã®ãã¼ãã表ç¾ããã¨ãã®è¨è¿°æ¹æ³ãpã¿ã°ã®2çªç®ã®è¦ç´ ããªã©ã®æå®ãã§ããã è¦ç´ ã®æå®ãã¿ã¼ã³ 以ä¸ã®HTMLãã¡ã¤ã«ã§ã<p class="outline">ã«ã¢ã¯ã»ã¹ããæ¹æ³ãåæã â»ãã©ã¦ã¶ã®ã³ã³ã½ã¼ã«ããã¢ã¯ã»ã¹ããã«ã¯ã$x(xpath)ãå®è¡ããã <html> <body> <div id="container"> ã¾ã¨ã <p class="header">Xpathã«ã¤ãã¦</p> <p class="outline">Xpathã¨ã¯ãXML Path Languageã®ç¥ã§...</p> <p class="footer">© ... Co., Ltd. ALL Rights Reserved.</p> </div> </body> </html> $x('/html/body/div/p[2]') # å é ãããã¡ãã¨æ¸ããå ´
{{#tags}}- {{label}}
{{/tags}}