Awesome. Thank you John for the prompt response.
--
https://mail.python.org/mailman/listinfo/python-list
On Friday, July 1, 2016 at 2:06:28 PM UTC-4, John Gordon wrote:
> In <3bbddafc-dcd6-4d5c-84f4-94077b5bc...@googlegroups.com> Basant Dagar
> writes:
>
> > def lookup(d, keyval):
> > found = False
> > for child in d:
> > if found : ret
#See below code:
def lookup(d, keyval):
found = False
for child in d:
if found : return child.text
if child.tag == 'key' and child.text == keyval :
found = True
return None
trackID = lookup(entry, 'Track ID')
Below is the main part of input xml file data