parameters: (self, filename=None)
docstring: Saves the XML file.
  		
  		@param filename: The file to save
  		@type filename: C{str}
  		
  		@note: This Overwrites the file if it exists.
docstring_summary: Saves the XML file.
docstring_tokens: Saves the XML file .
function: def save(self, filename=None):
  		"""
  		Saves the XML file.
  		
  		@param filename: The file to save
  		@type filename: C{str}
  		
  		@note: This Overwrites the file if it exists.
  		"""
  		if not self._initialized:
  			self.load()	
  			self._initialized = True
  		
  		if filename:
  			savefile = filename
  		else:
  			savefile = self._file
  				
  		if not savefile:
  			raise SerializerError("Cannot save file.  No filename specified!")
  	
  		# Writes the settings to file
  		self._indent(self._root_element)
  		self._tree.write(savefile, 'UTF-8')
function_tokens: def save ( self , filename = None ) : if not self . _initialized : self . load ( ) self . _initialized = True if filename : savefile = filename else : savefile = self . _file if not savefile : raise SerializerError ( "Cannot save file.  No filename specified!" ) # Writes the settings to file self . _indent ( self . _root_element ) self . _tree . write ( savefile , 'UTF-8' )