Add function for saving configuration in decoded xml