@classmethod
def from_xml(cls, node):
    """
        Construct a Segment from an EAGLE XML ``<segment>`` node.
        """
    primitives = cls.geometry_from_xml(node)
    pins = []
    for pin_node in node.xpath('pinref'):
        pass
    junctions = []
    for junction_node in node.xpath('junction'):
        junctions.append((junction_node.attrib['x'], junction_node.attrib['y'])
            )
    return cls(primitives=primitives, pins=pins, junctions=junctions)
