If the given filename ends with the suffix `".gz"` (for example, `"myfile.xml.gz"`), libSBML assumes the caller wants the file to be written compressed in gzip format. Similarly, if the given filename ends with `".zip"` or `".bz2"`, libSBML assumes the caller wants the file to be compressed in zip or bzip2 format (respectively). Files whose names lack these suffixes will be written uncompressed. Special considerations for the zip format: If the given filename ends with `".zip"`, the file placed in the zip archive will have the suffix `".xml"` or `".sbml"`. For example, the file in the zip archive will be named `"test.xml"` if the given filename is `"test.xml.zip"` or `"test.zip"`. Similarly, the filename in the archive will be `"test.sbml"` if the given filename is `"test.sbml.zip"`.