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
XML xpath union operator broken #8455
Comments
It doesn't work either in Ruby's Nokogiri, which uses libxml2 under the hood too. Maybe it's a bug or a limitation of libxml2. |
Using "//foo|//bar|//baz" works, though. |
The xpath pipe operator only combines full expressions, not partial expressions as in your example. You can use EDIT clarification: this applies to XPath 1.0, and libxml2 only supports 1.0, not 2.0 |
See above, libxml2 only supports xpath 1. |
Maybe we could add a line in the doc saying that, as it's not something I'd think to look |
Following xpath will fail with an
XML::Error
although it's valid xpath:The text was updated successfully, but these errors were encountered: