adspace
What is the difference between single and double slash in xpath?
Answer Posted / Rajiv Ranjan Kumar
In XPath, a single slash (/) represents child selection, while a double slash (//) represents descendant selection. For example, /html/body selects the body element directly under the html element, while //div finds all div elements anywhere in the HTML structure.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers