@staticmethod
def get_active_mode(root, schema_ids):
    """Get the mode from a (list of) rule id(s)."""
    active = False
    for schema_id in schema_ids:
        if root.find("rule[@id='" + schema_id + "']/active").text == 'true':
            active = True
            break
    return active
