►
Run
# Python XML Parsing import xml.etree.ElementTree as ET root = ET.parse('sample.xml').getroot() # iterate over all the nodes with tag name - holiday for holiday in root.findall('holiday'): print(holiday)
Output