Skip to content

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

Description

@sanketi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions