Add xml export without file creation
It would be nice to have a cimpy export functionality, which does not create a file but only the xml string/stream.
Possible API Ideas:
cim_exportso that it returns the string and create a new function
cim_file_exportwhich wraps that function and writes the content into a file. This likely breaks compatibility.
- create a new function
create_xmlwhich creates the string.
cim_exportshould then rely on that function.
- make the parameter
cim_exportoptional and return the content if no filename is given.
- if filename is not an string but an filehandle, write into this handle. Then one could use stuff like BytesIO to write in Memory