I commit the first basic part of the new schema validation right now this changes alot xml files.
SVN6669
Added basic Schema Validation for "Civ4ModularLoadControls", "Civ4PlayerOptionInfos", "Civ4Defines", "Civ4Types", "Civ4ArtDefines", "Civ4BasicInfos", "Civ4NewConceptInfos", "Civ4DCMConceptInfos", "Civ4ANDConceptInfos", "Civ4InvisibleInfos", "Civ4MemoryInfos", "Civ4MapInfos", "Civ4MapSwitchInfos" and "Civ4GameText".
The Schema is WIP so it may not be perfect and i add the other types in the next Days.
The Validation is only active for the above listed Types.
To add schema validation to a xml you need to add the the following attributes to the root element if this is not done the file won't be validated.
For Civ4GameText like this:
Code:
<Civ4GameText xmlns="http://www.firaxis.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.firaxis.com ..\Schema\Civ4Gametext.xsd">
For Everything else add these and remove the the old xmlns for example( xmlns="x-schema:C2C_CIV4GameInfoSchema.xml"):
Code:
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="..\Schema\Caveman2Cosmos.xsd"
Important is to set the right path for the schema it is the relative path from the xml to the xsd. The xsd's are in Assets\XML\Schema.