def METHOD_NAME(demorunners_path) -> list[DemoRunnerInfo]:
    """
    Parse a demorunners.xml file.
    """
    root = ET.parse(demorunners_path).getroot()
    demorunners = []
    for element in root.findall("demorunner"):
        capabilities = []
        for capability in element.findall("capability"):
            capabilities.append(capability.text)
        demorunners.append(
            DemoRunnerInfo(
                name=element.get("name"),
                capabilities=capabilities,
            )
        )
    return demorunners