I would like to get the line number of a tag within an xml document. I have tried node.getLineNumber() but it returns huge numbers (e.g. 24974770983609520 for an element which is on line 4 in my document).
I know I have the correct node so not sure why I am getting incorrect line numbers. Any ideas what I am doing wrong here?
I know I have the correct node so not sure why I am getting incorrect line numbers. Any ideas what I am doing wrong here?