Closes the class writing stream.
public function doSave();
ipworks_xml_do_save($res);
This method will close any open XML elements, and then close the OutputFile if necessary.