Node Line Numbers #19

tjkopena opened this Issue Feb 23, 2013 · 1 comment


None yet
2 participants

It would be really useful if programs detecting errors in their own parsing (as opposed to the underlying XML parsing) could report line numbers for the error by fetching a Node object's position information. E.g., if a required attribute is missing on a node, I want to report the line that node began on so the user can find it. Looking at the pkg docs and sources I haven't come across any functionality to get that information, but please correct me if wrong.

Gokogiri fills what I think is otherwise a huge hole in Go's pkg library (DOM style XML parsing), thanks!


jbowtie commented Oct 28, 2013

This should be an easy one, just need a Node function that calls

mdayaram closed this in #57 Nov 20, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment