<link href="/assets/64d0ba83aa42c90354ff97799bcfc0c2.css" type="text/css" rel="stylesheet"> <script src="/assets/6fd6663d5303bb7eda3ef7493fc29db6.js"></script> <script> $(document).ready(function() { anchors.options = { visible: 'hover', placement: 'right', truncate: 64 }; anchors.add('#body h2, #body h3, #body h4, #body h5'); }); </script> <script> hljs.initHighlightingOnLoad(); </script>

<h3>XPath : axes</h3> <p>Vous utiliserez le fichiers <code>arbre.xml</code>, dont la représentation arborescente est donnée ci-dessous. Le noeud courant est l'élément <strong>c4</strong>.</p> <p>Sur la figure, entourez les noeuds correspondant aux chemins suivants :</p> <ul> <li> <p>self::node()</p> </li> <li> <p>child::node()</p> </li> <li> <p>attribute::node()</p> </li> <li> <p>parent::node()</p> </li> <li> <p>ancestor::node()</p> </li> <li> <p>ancestor-or-self::node()</p> </li> <li> <p>descendant::node()</p> </li> <li> <p>descendant::*</p> </li> <li> <p>descendant::text()</p> </li> <li> <p>descendant-or-self::node()</p> </li> <li> <p>following::node()</p> </li> <li> <p>following-sibling::node()</p> </li> <li> <p>preceding::node()</p> </li> <li> <p>preceding-sibling::node()</p> </li> </ul> <p><img alt="axes" src="/user/pages/030.exercices/05.xpath/arbre.jpg" /></p>