def string_metadata(registry, xml_parent, data):
 pdef = base_metadata(registry, xml_parent, data, 'metadata-string')
 value = data.get('value', '')
 XML.SubElement(pdef, 'value').text = value

def string_metadata ( registry , xml_parent , data ) : pdef = base_metadata ( registry , xml_parent , data , 'metadata-string' ) value = data . get ( 'value' , '' ) XML . SubElement ( pdef , 'value' ) . text = value
yaml: string a string metadata .