def datacite_metadata(doi, title, creators, publisher, publication_year, pretty_print=False):
 creators = [CREATOR(CREATOR_NAME(each)) for each in creators]
 root = E.resource(E.identifier(doi, identifierType='DOI'), E.creators(*creators), E.titles(E.title(title)), E.publisher(publisher), E.publicationYear(str(publication_year)))
 root.attrib[('{%s}schemaLocation' % XSI)] = SCHEMA_LOCATION
 return lxml.etree.tostring(root, pretty_print=pretty_print)

def datacite_metadata ( doi , title , creators , publisher , publication_year , pretty_print = False ) : creators = [ CREATOR ( CREATOR_NAME ( each ) ) for each in creators ] root = E . resource ( E . identifier ( doi , identifierType = 'DOI' ) , E . creators ( * creators ) , E . titles ( E . title ( title ) ) , E . publisher ( publisher ) , E . publicationYear ( str ( publication_year ) ) ) root . attrib [ ( '{%s}schemaLocation' % XSI ) ] = SCHEMA_LOCATION return lxml . etree . tostring ( root , pretty_print = pretty_print )
return the formatted datacite metadata xml as a string .