Converts the element to KAF

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