I have an xml document and I want to get the line at which the tag extracted by BeautifulSoup or lxml is found. Is there a way to do that?