@classmethod
def from_xml(cls, node):
    """
        Construct an AutorouterRules instance from an EAGLE XML
        ``<autorouter>`` node.
        """
    passes = []
    for pass_node in node.xpath('pass'):
        params = {}
        for param_node in pass_node.xpath('param'):
            params[param_node.attrib['name']] = param_node.attrib['value']
        passes.append(params)
    return cls(passes=passes)
