Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem getting attribute value on specific element from element list (by index) #18

Open
PatrickHuetter opened this issue Jul 23, 2015 · 1 comment

Comments

@PatrickHuetter
Copy link

An xpath query like this one doesn't work with xsoup:

(//img[contains(@class, 'product_image')])[1]/@src
org.jsoup.select.Selector$SelectorParseException: Could not parse query '(//img[contains(@class, 'product_image')])[1]/@src': unexpected token at '(//img[contains(@class, 'product_image')])[1]/@src'
@ynonenull
Copy link

read the readme.md:
https://github.com/code4craft/xsoup/blob/master/README.md
The contains function syntax looks that:
//img[@Class*='product_image']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants