def xml_item(item):
 xml = xml_root_open(item)
 xml += xml_add_links(item)
 xml += xml_dict(item)
 xml += xml_root_close()
 return xml

def xml_item ( item ) : xml = xml_root_open ( item ) xml += xml_add_links ( item ) xml += xml_dict ( item ) xml += xml_root_close ( ) return xml
represents a single resource as xml .