Skip to content Skip to sidebar Skip to footer

Unable To Get Xpath Of Span With A Particular Class

I am unable to get the xpath of the following span element: This is the t

Solution 1:

Your span is part of a comment. You can not write XPath expressions for the contents of comments.

EDIT Further clarification: Look at your pastbin code, search for the span and look if it is part of a comment. You can simplify the job the the use of xmllint --format. You will see that xmllint will not indent the body of the comment. And your span is part of such an unindented block, which is part of a comment

Post a Comment for "Unable To Get Xpath Of Span With A Particular Class"