Saturday, October 27, 2018

Single Slash ' / ' Before Double Slash ' // ' In XPath

Single Slash ' / ' must start from root node. So the XPath having Single Slash ' / ' before Double Slash ' // ' will always start with '/html' for HTML documents.

For example:
/html//div
Above XPath is correct but adding '/html' do not provide any significance cause '/html//div' will return the same results as '//div'.


No comments:

Post a Comment