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!
This should be an easy one, just need a Node function that calls http://xmlsoft.org/html/libxml-tree.html#xmlGetLineNo