#NEWLINE# def stringFromMetadata( self , metadata ) : #NEWLINE# #INDENT# header = '<?xml version="1.0"?>\n' #NEWLINE# tree = self . convertMetadataToXML ( self , metadata ) #NEWLINE# return ( header + ET . tostring ( tree . getroot ( ) ) )