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

Question: Xpath expression fails with Could not parse query #32

Open
sanketi opened this issue Sep 16, 2017 · 1 comment
Open

Question: Xpath expression fails with Could not parse query #32

sanketi opened this issue Sep 16, 2017 · 1 comment

Comments

@sanketi
Copy link

sanketi commented Sep 16, 2017

Hi, I am trying to parse the Stay Safe section at this url - http://wikitravel.org/en/San_Francisco and my xpath is //h2[span[text()='Stay safe']]/following-sibling::p//text()

When i run the xpath in Chrome dev console, it evaluates properly and returns text nodes to me. However fails in xsoup at XpathParser.byFunction() and throws
Could not parse query 'h2[span[text()='Stay safe']]': unexpected token at 'span[text()='Stay safe']'

Do you have suggestion on this? TIA.

@AlanPedro
Copy link

@sanketi did you find a resolution for this?

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