Mercurial > repos > IBBoard.WarFoundry.API
view dtds/army.dtd @ 32:6b9d37f14a14
Re #32 - Migrate to schemas
* Remove unused method that was still validating by DTD
* Collapse Cats schema in to one nested structure
System files are failing to validate because:
Problem validating against schema for WarFoundry data: XmlSchema error: Invalid start element: http://ibboard.co.uk/warfoundry/system:cat XML Line 4, Position 4.
which is a <cat> tag, which should match the Cat schema definition. Removing the tags results in a different error about the end </categories> tag being unexpected because of missing content.
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 14 Mar 2009 20:47:14 +0000 |
parents | 163b35f875ef |
children |
line wrap: on
line source
<!ELEMENT army (units,customEquipment)> <!ELEMENT units (unit*)> <!ELEMENT unit (equipment?)> <!ELEMENT equipment (equipItem*)> <!ELEMENT equipItem EMPTY> <!ELEMENT customEquipment (customEquipment*)> <!ELEMENT customEquip EMPTY> <!ATTLIST army id CDATA #REQUIRED> <!ATTLIST army name CDATA #REQUIRED> <!ATTLIST army system CDATA #REQUIRED> <!ATTLIST army race CDATA #REQUIRED> <!ATTLIST army maxPoints CDATA #REQUIRED> <!ATTLIST unit id CDATA #REQUIRED> <!ATTLIST unit unitType CDATA #REQUIRED> <!ATTLIST unit unitName CDATA #REQUIRED> <!ATTLIST unit race CDATA ""> <!ATTLIST unit size CDATA ""> <!ATTLIST equipItem id CDATA #REQUIRED> <!ATTLIST equipItem amount CDATA #REQUIRED>