Open main menu

UESPWiki β

User:The Nerevarine/XML/schema/Item.xsd

< User:The Nerevarine

DocumentationEdit

The below code represents the schema for an item dataset.

The root elementsEdit

class name type multipicy
element item itemType 1..1

itemTypeEdit

class name type multipicy remark
attribute icon string 1..1
attribute price string 1..1
attribute locked string 1..1
attribute equipType string 1..1
attribute slot string enumeration 1..1 One of "Chest", "Costume", "Feet", "Hand", "Head", "Invalid", "Legs", "Main Hand", "Neck", "Off Hand", "One Hand", "Ring", "Shoulders", "Two Hands" or "Waist"
attribute itemStyle string enumeration 1..1 One of "None", "Argonian", "Breton", "Dunmer", "Altmer", "Khajiit", "Nord", "Orc", "Redguard" or "Bosmer"
attribute quality string enumeration 1..1 One of "Trash", "Normal", "Magic", "Arcane", "Artifact" or "Legendary"
attribute level int 1..1
attribute trait string 1..1
attribute craft string 1..1
attribute type string 1..1
element info infoType 1..*
element link string 0..1

infoTypeEdit

class name type multipicy remark
attribute quality int enumeration 1..1 One of "1", "2" or "3"
content string 0..1

CodeEdit

<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
        targetNamespace="http://org.example.esologging/item"
        xmlns:tns="http://org.example.esologging/item"
        elementFormDefault="qualified">

    <element name="item" type="tns:itemType" />

    <complexType name="itemType">
        <sequence>
            <element name="info" type="tns:infoType" maxOccurs="unbounded" minOccurs="0" />
            <element name="link" type="string" maxOccurs="1" minOccurs="0" />
        </sequence>
        <attribute name="name" type="string" />
        <attribute name="icon" type="string" />
        <attribute name="price" type="int" />
        <attribute name="locked" type="boolean" />
        <attribute name="equipType" type="string" />
        <attribute name="slot">
            <simpleType>
                <restriction base="string">
                    <enumeration value="Chest" />
                    <enumeration value="Costume" />
                    <enumeration value="Feet" />
                    <enumeration value="Hand" />
                    <enumeration value="Head" />
                    <enumeration value="Invalid" />
                    <enumeration value="Legs" />
                    <enumeration value="Main Hand" />
                    <enumeration value="Neck" />
                    <enumeration value="Off Hand" />
                    <enumeration value="One Hand" />
                    <enumeration value="Ring" />
                    <enumeration value="Shoulders" />
                    <enumeration value="Two Hands" />
                    <enumeration value="Waist" />
                </restriction>
            </simpleType>
        </attribute>
        <attribute name="itemStyle">
            <simpleType>
                <restriction base="string">
                    <enumeration value="None" />
                    <enumeration value="Argonian" />
                    <enumeration value="Breton" />
                    <enumeration value="Dunmer" />
                    <enumeration value="Altmer" />
                    <enumeration value="Khajiit" />
                    <enumeration value="Nord" />
                    <enumeration value="Orc" />
                    <enumeration value="Redguard" />
                    <enumeration value="Bosmer" />
                </restriction>
            </simpleType>
        </attribute>
        <attribute name="quality">
            <simpleType>
                <restriction base="string">
                    <enumeration value="Trash" />
                    <enumeration value="Normal" />
                    <enumeration value="Magic" />
                    <enumeration value="Arcane" />
                    <enumeration value="Artifact" />
                    <enumeration value="Legendary" />
                </restriction>
            </simpleType>
        </attribute>
        <attribute name="level" type="int" />
        <attribute name="trait" type="string" />
        <attribute name="craft" type="string" />
        <attribute name="type" type="string" />
    </complexType>

    <complexType name="infoType" mixed="true">
        <attribute name="index" use="required">
            <simpleType>
                <restriction base="int">
                    <enumeration value="1 />
                    <enumeration value="2" />
                    <enumeration value="3" />
                </restriction>
            </simpleType>
        </attribute>
    </complexType>
</schema>

ExamplesEdit

Culanwe's WillEdit

<item xmlns="http://org.example.esologging/item"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://org.example.esologging/item Item.xsd"
      name="Culanwe's Will"
      icon="/esoui/art/icons/gear_altmer_staff_b.dds"
      price="38"
      locked="false"
      equipType="Two Hands"
      itemStyle="Altmer"
      quality="Magic"
      level="25"
      trait="Infused"
      craft="Invalid"
      type="None">
    <link>|H2DC50E:item:10273:9:19:0:0:0:0:0:0:0:0:0:0:0:0:7:0:0:225:0|hCulanwe's Will|h</link>
</item>

pristine waterEdit

<item xmlns="http://com.mbudde.eso.itemlogging"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://com.mbudde.eso.itemlogging Item.xsd"
      name="pristine water"
      icon="/esoui/art/icons/crafting_potion_base_water_2_r3.dds"
      price="1"
      locked="false"
      equipType="Invalid"
      itemStyle="None"
      quality="Normal"
      level="21"
      trait="None"
      craft="Alchemy"
      type="Alchemy">
    <info index="1">2</info>
    <info index="2">20</info>
    <info index="3">0</info>
    <link>|HFFFFFF:item:4570:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|hpristine water|h</link>
</item>

dragonthornEdit

<item xmlns="http://com.mbudde.eso.itemlogging"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://com.mbudde.eso.itemlogging Item.xsd"
      name="dragonthorn"
      icon="/esoui/art/icons/crafting_forester_potion_sp_names_002.dds"
      price="2"
      locked="false"
      equipType="Invalid"
      itemStyle="None"
      quality="Magic"
      level="5"
      trait="None"
      craft="Alchemy"
      type="Reagent">
    <link>|H2DC50E:item:30162:1:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|hdragonthorn|h</link>
</item>