zhengchun

Results 63 comments of zhengchun

@Hipska , The actually result from your go code execute is correct, your expect result is not right. ``` for i, n := range xmlquery.Find(doc, "//r[@p=../../measType/@p]") { fmt.Printf("#%d %s\n", i,...

So, what is your expected xpath if we can implement the `current()` function. In the above example, if you can nested `for...loop` why you can't change xpath expression to replace...

Hello, I checked your give URL: `view-source:https://www.productfrom.com/product/416492-adidas-copa-mundial-soccer-shoes`, there is no any `text:right` characters in HTML source code ,only have `text-right`.

Hello, thanks for your contribution first. I am not familiar with `if-else-then` and do not fully understand where it can apply. So can your give some example. I am writing...

I agree your point, `if (//a[@id='2']) then 1 else 2` is the same as: `if (exists(//a[@id='2'])) then 1 else 2`. it is my mistake, `if (//a[@id='2']) then 1 else 2`...

@[jerzybrzoska](https://github.com/jerzybrzoska), checking your variable `td` is not `nil` before calling `htmlquery.InnerText(td)`, like this `if td != nil { record = htmlquery.InnerText(td) }` 2. your xpath express is not good, change...

change to `//span[@class='tw-user-nav-list-count'][2]/text()` `text()` function will return text node on the `antch's xpath` library. you should return `Node` object and then call `text()`. By the way, I found your xpath...

Okay, I got that what your mean. I flag this.

Did you try this [xmlquery](https://github.com/antchfx/xmlquery) package?? I guess you should convert the interesting node to the standard XML string and then load by XPath library.

I am sure `xmlquery` package can handle a large XML files, you should try. You can check this at https://github.com/antchfx/xmlquery/blob/master/node.go#L197