diff api/Savers/Xml/WarFoundryXmlGameSystemSaver.cs @ 322:3e9b0603afad

Re #338: WarFoundry.API - Save System Data * Alter visibility in GameSystem saver to allow for re-use of code * Add encoding to XML * Make use of GameSystem saver within FileSaver
author IBBoard <dev@ibboard.co.uk>
date Wed, 09 Mar 2011 20:32:08 +0000
parents 40a2df1f629a
children e0580a009e75
line wrap: on
line diff
--- a/api/Savers/Xml/WarFoundryXmlGameSystemSaver.cs	Sat Mar 05 20:08:41 2011 +0000
+++ b/api/Savers/Xml/WarFoundryXmlGameSystemSaver.cs	Wed Mar 09 20:32:08 2011 +0000
@@ -50,7 +50,7 @@
 			return success;
 		}
 
-		private string CreateXmlString(WarFoundryObject toSave)
+		public string CreateXmlString(WarFoundryObject toSave)
 		{
 			string xmlString = "";
 
@@ -65,7 +65,7 @@
 		private string CreateGameSystemXmlString(GameSystem toSave)
 		{
 			XmlDocument doc = new XmlDocument();
-			XmlDeclaration declaration = doc.CreateXmlDeclaration("1.0", null, null);
+			XmlDeclaration declaration = doc.CreateXmlDeclaration("1.0", "UTF-8", null);
 			doc.AppendChild(declaration);
 			XmlSchema schema = new XmlSchema();
 			schema.Namespaces.Add("", "http://ibboard.co.uk/warfoundry/system");