antchfx / xmlquery

xmlquery is Golang XPath package for XML query.
https://github.com/antchfx/xpath
MIT License
444 stars 89 forks source link

namespace-uri() returns the node name prefix, not the actual namespace URI #22

Closed ToadKing closed 4 years ago

ToadKing commented 4 years ago

https://play.golang.org/p/jS7v32qaF2B

The XPath that searches for the bar namespace should be the one that finds an element, but instead the one that searches for the namespace prefix foo is the one that finds it.

zhengchun commented 4 years ago

Fixed, check out the latest xpath and xmlquery repos.