Write a python program to parse an XML document
import xml.etree.ElementTree as ET

def parse_xml(xml_file):
    root = ET.parse(xml_file).getroot()
    for child in root:
        print(child.tag, child.attrib)