Mercurial > repos > IBDev-IBBoard.WarFoundry.API
diff api/Factories/Xml/WarFoundryXmlSaver.cs @ 125:c60fd5664698
Re #53: Create WarFoundry save class to store army as file
* Fix exceptions thrown by official .Net XML parsing of namespace names
Also:
* Remove unnecessary notification of name change
no-open-ticket
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Mon, 24 Aug 2009 21:12:18 +0000 |
parents | 571eee2b7b30 |
children | f58051572ec7 |
line wrap: on
line diff
--- a/api/Factories/Xml/WarFoundryXmlSaver.cs Mon Aug 24 19:32:55 2009 +0000 +++ b/api/Factories/Xml/WarFoundryXmlSaver.cs Mon Aug 24 21:12:18 2009 +0000 @@ -68,8 +68,8 @@ XmlDeclaration declaration = doc.CreateXmlDeclaration("1.0", null, null); doc.AppendChild(declaration); XmlSchema schema = new XmlSchema(); - schema.Namespaces.Add("xmlns", "http://ibboard.co.uk/warfoundry/army"); - schema.Namespaces.Add("xmlns:core", "http://ibboard.co.uk/warfoundry/core"); + schema.Namespaces.Add("", "http://ibboard.co.uk/warfoundry/army"); + schema.Namespaces.Add("core", "http://ibboard.co.uk/warfoundry/core"); doc.Schemas.Add(schema); XmlElement root = doc.CreateElement("army"); root.SetAttribute("xmlns", "http://ibboard.co.uk/warfoundry/army");