diff dtds/army.dtd @ 4:163b35f875ef

Re #7 - Add DTDs to API project because they're API related rather than GUI related no-open-ticket
author IBBoard <dev@ibboard.co.uk>
date Fri, 26 Dec 2008 12:32:16 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dtds/army.dtd	Fri Dec 26 12:32:16 2008 +0000
@@ -0,0 +1,22 @@
+<!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>
\ No newline at end of file