def parse_xml_blocks_file(xml_file_path):
    """ laod XML file, returns block_data object, containing all the block
        names and their first and last code point (hex value)
     """
    block_data = {}

    # Parse the XML file
    tree = ET.parse(xml_file_path)
    root = tree.getroot()

    # Iterate through the 'block' elements and extract the data
    for block_element in root.findall('.//block'):
        first_cp = block_element.get('first-cp')
        last_cp = block_element.get('last-cp')
        block_name = block_element.get('name')
        
        if block_name is not None and first_cp is not None and last_cp is not None:
            block_data[block_name] = {
                'first-cp': first_cp,
                'last-cp': last_cp
            }
    return block_data
 laod XML file, returns block_data object, containing all the block
        names and their first and last code point (hex value)
     
durdraw/durdraw_charsets.py