-
Notifications
You must be signed in to change notification settings - Fork 32
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
xpath tests #8
Comments
cc: @vtjnash Some not-so-trivial xpath queries are failing. Will be good to add some standard tests for the same. |
Sounds good, will do. Can you give some examples of xpath queries that are failing for you? There is a class of unimplemented functionality (e.g. parenthesized expressions, many functions, namespaces, returning objects of types other than nodes), but there is also likely still some legit bugs. |
From the above xml
The below returns 2 objects, should return only one:
cannot get the text anyways:
I have not done extensive testing, was just thinking of using this interface and ran into problems. |
Some of these are intentionally not supported currently (retrieving attributes via This one seems wrong: |
( |
How does one get the text using xpath then? |
It will also be good to list the xpath subset supported more explicitly in the README. |
This one julia> pd["/bookstore/book[1]/author/award"]
1-element ParsedData Array:
<award>Trenton Literary Review Honorable Mention</award>
julia> pd["/bookstore/book[3]/author/award"]
1-element ParsedData Array:
<award>Pulitzer</award> I'll add an API to support the other node types. |
add tests for xpath, possibly based on http://msdn.microsoft.com/en-us/library/ms256086.aspx
The text was updated successfully, but these errors were encountered: