class LineNumberingParser(ET.XMLParser):

    def _start_list(self, *args, **kwargs):
        element = super(self.__class__, self)._start_list(*args, **kwargs)
Is there a way to get a line number from an ElementTree Element