def to_xml(self, xml_parent):
    link_ref = SubElement(xml_parent, self.link_type)
    link_ref.set('link', self.name)
    return link
def to_xml(self, xml_parent):
    link_ref = SubElement(xml_parent, self.link_type)
    link_ref.set('link', self.name)
    return link