def create_xml_file_from_string(self, content, destination=None):
header_file = utils.create_temp_file_name(suffix='<STR_LIT>')<EOL>try:<EOL><INDENT>with open(header_file, "<STR_LIT>") as header:<EOL><INDENT>header.write(content)<EOL><DEDENT>xml_file = self.create_xml_file(header_file, destination)<EOL><DEDENT>finally:<EOL><INDENT>utils.remove_file_no_raise(header_file, self.__config)<EOL><DEDENT>return xml_file<EOL>
Creates XML file from text.

:param content: C++ source code
:type content: str

:param destination: file name for xml file
:type destination: str

:rtype: returns file name of xml file