@classmethod
def from_xml(cls, node):
    """
        Construct a Wire from an EAGLE XML ``wire`` node.
        """
    curve = node.attrib.get('curve')
    curve = curve and float(curve)
    return cls(start=(float(node.attrib['x1']), float(node.attrib['y1'])),
        end=(float(node.attrib['x2']), float(node.attrib['y2'])), width=
        float(node.attrib['width']), layer=int(node.attrib['layer']), curve
        =curve, cap=node.attrib.get('cap'))
