zhengchun

Results 63 comments of zhengchun

Okay, I'm trying to fix this, it take a while.

@ale-rinaldi , `last()` is a special function, it needs to knows how many matching nodes , The value is dynamic unlike the `[1]`,`[2]` is pre-defined position on query. I try...

I'll try to fix another , It is more complex than subgroup query :smile:

Hello, first thanks for your contribution, but your example `//ul/li/@clášs日本語` is doesn't make sense. In mose cases, HTML, XML and JSON document supported english, number or under-line only. You should...

```json { "module": { "ABCD": { "source": "", "version": "", "location": "", "resource_group_name": "" } }, "module": { "PQRS": { "source": "", "version": "", "sa_name": "", "resource_group": "" } }...

I forget why no `SelectElements` method. May be is JSON doesn't support Duplidate Keys. the below is incorrect json structure. ```json { "aa": "sss", "aa": "sss" } ``` In json...

You are right, I forgot the `Array[]` type in JSON. `SelectElements` can works for array type.

Thans for your suggest, but This change will breaking the previous xmlquery and jsonquery package. xmlquery and jsonquery are independent packages, and both are depend on xpath package.

another alternative package supported HTML and XPath. https://github.com/antchfx/htmlquery

There are two problem. 1. `replace()` not supportd the regex syntax. 2. `replace()` as a function and return a value with string type, you should call [`xpath.Evaluate(...)`](https://pkg.go.dev/github.com/antchfx/xpath#Expr.Evaluate), the `htmlquery.QueryAll()` always...