Getting file line numbers from Nodes in a DOM?

Beej beej at beej.us
Thu Feb 8 06:15:53 EST 2007


I have a DOM parsed with xml.dom.mindom.parse()...for a particular
Node, is there an easy way to get the line (and maybe even column)
numbers that the element appeared in the original file?

Thanks,
-Beej




More information about the Python-list mailing list