(fname)
return tree, root
Read an XML file <fname> which can be later parsed with parse_pages. Uses Python's xml.etree.ElementTree.
    Return a tuple with (XML tree object, tree root element)
Read an XML file <fname> which can be later parsed with parse_pages. Uses Python's xml.etree.ElementTree.
    Return a tuple with (XML tree object, tree root element)
Read an XML file <fname > which can be later parsed with parse_pages . Uses Python s xml . etree . ElementTree . Return a tuple with ( XML tree object tree root element )
def read_xml(fname):
    """
    Read an XML file <fname> which can be later parsed with parse_pages. Uses Python's xml.etree.ElementTree.
    Return a tuple with (XML tree object, tree root element)
    """
    tree = ET.parse(fname)
    root = tree.getroot()
    
    return tree, root
def read_xml ( fname ) : tree = ET . parse ( fname ) root = tree . getroot ( ) return tree , root