def _parse_vasp_kinter(xml_tree):
    """Extract KINTER from an XML ElementTree representing a vasprun.xml file.
    If this parameter is not present, return 0.
    """
    xml_incar = xml_tree.find('./incar')
    nruter = 0
    for e in xml_incar:
        attribs = e.attrib
        if 'type' in attribs and attribs['type'] == 'int' and attribs['name'
            ] == 'KINTER':
            nruter = int(e.text.strip())
            break
    return nruter
