-
Notifications
You must be signed in to change notification settings - Fork 162
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
Is xpath lookup from root node, not from current node? #103
Comments
Could you please provide repro code that can execute rather than pseudo-code? Thanks |
Also, please use the latest Fuzi version 3.1.1. Version 1.0.1 is a few years old already, I don't expect it to work with Xcode 11. |
There is I found 20 books per page, enumerate it and parse book by book. P.s.: Also, I found a memory consumption problem but this is another story... (maybe that is Xcode instruments bug) P.s.p.s.:
|
I mean would you mind providing executable source code that I can use run and debug rather than just a screenshot of a code snippet? I don't even know what XML you are parsing and what xpath query you used. |
I did send an email for you with link to example-project |
Description:
Expected behaviour:
XPath look from node not root.
Actual behaviour:
XPath look from root not node.
For example, I looked for 20 nodes with a certain class. After, I iterate result for look inside for one item with selected class (I know there is one object with this class). I checked count, it returned 20 not 1.
Environment
Package Manager:
Fuzi version: 1.0.1
Xcode version: 11.2
How to reproduce:
The text was updated successfully, but these errors were encountered: