XPath Cookbookãã¿ã§æ¸ãã¦ããã§ãããé·ããªã£ãã®ã§ã¨ãããããã¡ãã«ã id:taizoooã«ãªã¯ã¨ã¹ãããã//ã¨descendant::ã®éãã«ã¤ãã¦ã ä¸æºåã¨ãã¦ãããããHTMLããµã³ãã«ã¨ãã¦ä½¿ç¨ãã¾ãã(ãµã³ãã«ã¯Firebugã®ã³ã³ã½ã¼ã«ã§å®è¡ã§ãã¾ã) document.body.innerHTML = <><![CDATA[ <ul id="root"> <li> <a href="#a1">a1</a> </li> <li> <a href="#b1">b1</a> </li> <li> <a href="#c1">c1</a> <a href="#c2">c2</a> </li> <li> <a href="#d1">d1</a> <a href="#d2">d2</a> </li> </ul> ]]></>.toString(); ã¾ãã//*ã¨d
{{#tags}}- {{label}}
{{/tags}}