def to_kaf(self):
        """
        Converts the element to NAF
        """
        if self.type == 'NAF':
            ##convert all the properties
            for node in self.node.findall('properties/property'):
                node.set('pid',node.get('id'))
                del node.attrib['id']
def to_kaf ( self ) : if self . type == 'NAF' : for node in self . node . findall ( 'properties/property' ) : node . set ( 'pid' , node . get ( 'id' ) ) del node . attrib [ 'id' ]
Converts the element to NAF