def write_ioc_to_string(self, force=False):
return write_ioc_string(self.root, force=force)<EOL>
Serialize the IOC to a string.

:param force: If specified, will not validate the root node of the IOC is 'OpenIOC'.
:return: XML String.