go-xmlpath / xmlpath

Strict subset of the XPath specification for the Go language.
http://gopkg.in/xmlpath.v2
Other
115 stars 37 forks source link

Expose node name #12

Open vtsurkan opened 9 years ago

niemeyer commented 9 years ago

Thanks. Happy to integrate something along these lines, but it seems that this would be better supported by offering the xpath equivalent functionaly: name() and namespace-uri(). With these all the rich expressiveness of the language is also available for the text in these locations.

Also, we need tests for the new functionality.

Are you interested in pursuing those?

vtsurkan commented 9 years ago

Gustavo Thanks for your reply. Exposing xpath functionality as you had mentioned would be a awesome, though it doesn't negate the need for the name of the Node to be exposed. As everyone else I am under great stress for deliverables at work, but will try to do something along the lines you suggested.

ThanksVT

 On Wednesday, May 20, 2015 8:54 PM, Gustavo Niemeyer <notifications@github.com> wrote:

Thanks. Happy to integrate something along these lines, but it seems that this would be better supported by offering the xpath equivalent functionaly: name() and namespace-uri(). With these all the rich expressiveness of the language is also available for the text in these locations.Also, we need tests for the new functionality.Are you interested in pursuing those? — Reply to this email directly or view it on GitHub.