Does anyone know how you can get the line number of an Element in a Document?
I appreciate this information is probably not stored on the Element once it is parsed (I looked) but is there some way during the parsing process of capturing line numbers of each elements? I can then use a lookup later to go from Element -> line number.