diff options
author | Eric Scrivner <zenogais@gmail.com> | 2005-06-28 08:03:12 +0000 |
---|---|---|
committer | Eric Scrivner <zenogais@gmail.com> | 2005-06-28 08:03:12 +0000 |
commit | 13829482e017dffe57b4bc698d49bdd9b2bb71ea (patch) | |
tree | bf6b53e40726e57f7a359232a38d057c3c143a4d /items.xsd | |
parent | ed652e229a8a66a920ae215874d5dd4a160028f7 (diff) | |
download | clientdata-13829482e017dffe57b4bc698d49bdd9b2bb71ea.tar.gz clientdata-13829482e017dffe57b4bc698d49bdd9b2bb71ea.tar.bz2 clientdata-13829482e017dffe57b4bc698d49bdd9b2bb71ea.tar.xz clientdata-13829482e017dffe57b4bc698d49bdd9b2bb71ea.zip |
First Version Of XML Schema For Items List
Diffstat (limited to 'items.xsd')
-rw-r--r-- | items.xsd | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/items.xsd b/items.xsd new file mode 100644 index 00000000..407182cc --- /dev/null +++ b/items.xsd @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> + + <!-- IMAGE TYPE --> + + <xsd:simpleType name="mw_ItemArtType"> + <xsd:restriction base="xsd:integer"> + <xsd:minInclusive value="0" /> + <xsd:maxInclusive value="1" /> + </xsd:restriction> + </xsd:simpleType> + + <!-- ITEMS LIST FILE SCHEMA --> + + <xsd:element name="items"> + <xsd:complexType> + <xsd:sequence> + + <xsd:element name="item" minOccurs="0" maxOccurs="unbounded"> + <xsd:complexType> + <xsd:simpleContent> + <xsd:extension base="xsd:string"> + <xsd:attribute name="name" type="xsd:string" /> + <xsd:attribute name="description" type="xsd:string" /> + <xsd:attribute name="id" type="xsd:positiveInteger" /> + <xsd:attribute name="image" type="xsd:positiveInteger" /> + <xsd:attribute name="art" type="mw_ItemArtType" /> + <xsd:attribute name="type" type="xsd:integer" /> + <xsd:attribute name="slot" type="xsd:integer" /> + <xsd:attribute name="weight" type="xsd:positiveInteger" /> + </xsd:extension> + </xsd:simpleContent> + </xsd:complexType> + </xsd:element> + + </xsd:sequence> + </xsd:complexType> + </xsd:element> + +</xsd:schema>
\ No newline at end of file |