xpath icon indicating copy to clipboard operation
xpath copied to clipboard

XPath package for Golang, supports HTML, XML, JSON document query.

Results 23 xpath issues
Sort by recently updated
recently updated
newest added

I'm wondering why the `current()` function hasn't been implemented, and if it would make much time to do so. I'm currently in the situation where I would need a query...

bug
enhancement

Hello, first of all, thanks for your amazing work, it's really useful to me. I'm having an issue when using the `last()` function on a subgroup, for example on a...

bug

```xml First Second Third ``` ### Test: - [x] [//test[@foo='bar'])/[last()]` This from https://github.com/antchfx/xpath/issues/76 expected: ```xml Second ``` actually: not found - [ ] `//test[@foo='bar'][last()]` expected ```xml Second ``` actually: not...

bug

This happens when calling `.InnerText` when a page happens to be blank (such as a redirect). ~~~ panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation...

My xml data is - ` SgnbAddAttemptCell.enb.0 SgnbAddAttemptCell.enb.1 SgnbAddAttemptCell.enb.2 SgnbAddAttemptCell.enb.3 0 0 0 0 ` I wanted to parse it using telegraf. I am able to get measurement, but currently...

Changed type of field text of struct scanner into slice of rune to support cyrillic symbols. Since the Cyrillic character is encoded in two bytes, the length of the string...

I assume that XPath 2.0 is not (fully) implemented (yet), so feel free to close this issue, as XPath 1 does not support this expression. This program: ``` package main...

xpath 2.0

Steps to reproduce: save the content of `view-source:https://www.productfrom.com/product/416492-adidas-copa-mundial-soccer-shoes` in test.html ``` package main import ( "fmt" "github.com/antchfx/htmlquery" ) func main() { doc, err := htmlquery.LoadDoc("test.html") if err != nil {...