Mercurial > repos > IBBoard.WarFoundry.API
comparison api/Factories/Xml/WarFoundryXmlFactoryUtils.cs @ 224:f097888efcfe
Fixes #233: "unitPoints" attribute is badly named
* Rename "unitPoints" to "basePoints"
* Re-order schema to more sensible name
* Use new name in code when parsing XML (object property already has sensible name)
Also:
* Rename "dtds" folder to more accurate "schemas"
* Change references to folder in code
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Mon, 14 Dec 2009 20:50:39 +0000 |
parents | a1a6b527cd70 |
children | bbd86698240a |
comparison
equal
deleted
inserted
replaced
223:fe5a03d73918 | 224:f097888efcfe |
---|---|
65 settings.ValidationType = ValidationType.Schema; | 65 settings.ValidationType = ValidationType.Schema; |
66 settings.ValidationFlags = XmlSchemaValidationFlags.ReportValidationWarnings; | 66 settings.ValidationFlags = XmlSchemaValidationFlags.ReportValidationWarnings; |
67 settings.ProhibitDtd = true; | 67 settings.ProhibitDtd = true; |
68 settings.ValidationEventHandler+= new ValidationEventHandler(ValidationEventMethod); | 68 settings.ValidationEventHandler+= new ValidationEventHandler(ValidationEventMethod); |
69 XmlSchemaSet cache = new XmlSchemaSet(); | 69 XmlSchemaSet cache = new XmlSchemaSet(); |
70 string path = IBBoard.Constants.ExecutablePath + "/dtds/"; | 70 string path = IBBoard.Constants.ExecutablePath + "/schemas/"; |
71 AddSchemaToCache(cache, NS_BASE + "core", path + "warfoundry-core.xsd"); | 71 AddSchemaToCache(cache, NS_BASE + "core", path + "warfoundry-core.xsd"); |
72 AddSchemaToCache(cache, NS_BASE + "cats", path + "warfoundry-cats.xsd"); | 72 AddSchemaToCache(cache, NS_BASE + "cats", path + "warfoundry-cats.xsd"); |
73 AddSchemaToCache(cache, NS_BASE + "race", path + "race.xsd"); | 73 AddSchemaToCache(cache, NS_BASE + "race", path + "race.xsd"); |
74 AddSchemaToCache(cache, NS_BASE + "system", path + "system.xsd"); | 74 AddSchemaToCache(cache, NS_BASE + "system", path + "system.xsd"); |
75 AddSchemaToCache(cache, NS_BASE + "army", path + "army.xsd"); | 75 AddSchemaToCache(cache, NS_BASE + "army", path + "army.xsd"); |