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

Add Mapper<String> JOOX.xpath() and JOOX.xpath(IndexType) to allow for influencing whether elements are indexed #122

Open
lukaseder opened this issue Jun 21, 2013 · 0 comments

Comments

@lukaseder
Copy link
Member

Currently, match.xpath() returns a fully indexed XPath expression, even if the index is not necessary.

This:

/document[1]/library[1]/books[1]/book[1]

Could also be expressed as:

/document/library[1]/books/book[1]

It should be possible to indicate to the xpath() method:

  • Whether it should index all elements
  • Whether it should index only those elements where indexing is necessary
  • Whether it should index no elements

See also this rejected pull request: #2

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

No branches or pull requests

1 participant