What is the difference between / and // in an XPath expression?
Question
What is the difference between / and // in an XPath expression?
Answer
We will use / to start the selection from a node in the document. It allows us to create absolute Xpath expressions. We will use // to start the selection from anywhere in the document. It allows us to create relative Xpath expressions.