The root-element of the xml-file is the results
-element, only containing show
-elements. You're trying to take subelement show-id
from results
, while show-id
-elements are all subelements of show
.
You could use showid = root.find('show/show-id')
, but probably you want toe use a for-loop and the findall-function instead of the find-function.