What is the "Current" node in XPath?

Viewed 88

https://www.w3schools.com/xml/xpath_axes.asp

In every XPath Axis, it says "Current node".

What is the current node in XPath? Is it same as the context node?

<html>
  <body>
    <div id="id1">
      <p>First paragraph</p>
      <div>
        <p>Second paragraph</p>
      </div>
    </div>
    <p>Third paragraph</p>
  </body>
</html>

.//p and //p will select different elements? why?

0 Answers
Related