XPath to Parse “SRC” from IMG tag?

You are so close to answering this yourself that I am somewhat reluctant to answer it for you. However, the following XPath should provide what you want (provided the source is XHTML, of course).

//img[@class="photo-large"]/@src

For further tips, check out W3 Schools. They have excellent tutorials on such things and a great reference too.

Leave a Comment

tech