Grappler Posted June 27, 2006 Share Posted June 27, 2006 This is the XML schema file file for scenarios. Please use this file to validate your scenarios. The document in the other topic may eventually become out of date. It is our intention to keep all the documentation in this schema, even though that means the documentation will be harder to read. When I have completed the documentation, we will also publish a complete set of HTML schema documentation. And before someone says our scenario files don't validate against this schema, we know. The next release will have new scenario files that do validate. [ June 27, 2006, 05:52 PM: Message edited by: Grappler ] Link to comment Share on other sites More sharing options...
Dark_au Posted June 28, 2006 Share Posted June 28, 2006 erm... maybe a thick question but WTF is a schema and what do i do with it. Link to comment Share on other sites More sharing options...
Grappler Posted June 28, 2006 Author Share Posted June 28, 2006 Schema define an XML data structure and constrain the inputs within the XML. It is like a proofing document. Programs like XML Spy Home Edition here allow you to validate an XML data file (like the scenario files) against a know standard (the XML Schema file). Without this validation, you could spend a lot of time working on a scenario file, encounter an error, and not be able to find the error. The schema validation uncovers most errors. [ June 27, 2006, 07:36 PM: Message edited by: Grappler ] Link to comment Share on other sites More sharing options...
Dark_au Posted June 28, 2006 Share Posted June 28, 2006 thanks Link to comment Share on other sites More sharing options...
poesel Posted July 8, 2006 Share Posted July 8, 2006 What program could I use under Linux or OSX to validate the XML file? Link to comment Share on other sites More sharing options...
poesel Posted August 6, 2006 Share Posted August 6, 2006 Found one for Linux: 'mlview' (sorry, no url - its an ubuntu package so should be available everywhere). It can view, edit and validate xml files. Looks pretty simple. Just for fun I tried to validate the raid.scenario with the above mentioned xsd. I got an error in the 'ConcealmentFactor' node which it didn't expect. There is another xsd in the /data directory which is the same file as above though. Link to comment Share on other sites More sharing options...
Grappler Posted August 7, 2006 Author Share Posted August 7, 2006 Errr.. We were just testing to see if anyone was actually using this? Actually, Clay is just so productive he has outdistanced the specs. So there is a new one out there now. Link to comment Share on other sites More sharing options...
Alexander SquidLord Williams Posted August 28, 2006 Share Posted August 28, 2006 Time to put out a new Schema that understands DeploymentZone, gentlemen. Link to comment Share on other sites More sharing options...
Toby Haynes Posted September 11, 2006 Share Posted September 11, 2006 Can I also put out a request for the updated scenario.xsd file? I've started validating my first mission and it does indeed throw errors because DeploymentZone is not a valid child node given the original schema. Link to comment Share on other sites More sharing options...
poesel Posted September 11, 2006 Share Posted September 11, 2006 You can get a more recent one from TBG. Look in the .xsd there is a path to it. Link to comment Share on other sites More sharing options...
Toby Haynes Posted September 11, 2006 Share Posted September 11, 2006 Maybe I'm missing something. I have the following file, as downloaded today, 11th September, from http://tbgsoftware.com/scenario.xsd This schema doesn't have DeploymentZone as a child of GameType. Take a look at HouseToHouse.scenario for an example of DeploymentZone and then try and validate that document against the scenario.xsd. It complains about an invalid child node for GameType. Cheers, Toby Haynes Link to comment Share on other sites More sharing options...
Recommended Posts