lineno [expression]
lineno command prints line numbers of all nodes in a given node-list. Note however, that libxml2 only stores line number information for element nodes.
lineno
libxml2
locate