@classmethod
def from_xml(cls, node):
    """
        Construct a Rectangle from an EAGLE XML ``<rectangle>`` node.
        """
    return cls(start=(float(node.attrib['x1']), float(node.attrib['y1'])),
        end=(float(node.attrib['x2']), float(node.attrib['y2'])), layer=int
        (node.attrib['layer']))
