My favorites | Sign in
Project Logo
                
Search
for
Updated Nov 22, 2007 by joesox
Labels: Featured
XML_Schema_SLMIV  

SLMIV XML

SLMIV v2 allows the exporting and importing of XML. The requirement for a properly formatted SLMIV XML is as follows:

  1. XML must be formatting to the Schema below.
  2. If you want SLMIV to automatically find the avatar's UUID when the XML is read, there must be a
    <category name="Photo Album" uuid="xxxxx etc" image="0">
    element tag in the XML file (See the example provided below).

SLMIV XML Schema 2.7.0

TagSL DescriptionSLMIV Description
<category>
</category>
Inventory FolderThis element tag is created by SLMIV.Utils.MIUtils.TreeViewToXML(TreeView treeViewOne, string filename). This value is kept in the treeView1.Nodes[x].Tag field and is assigned in Form1.CreateTreeView() and Form1.InsertUnderParent
<object>
</object>
Inventory Item (everything but a Folder)This element tag is created by SLMIV.Utils.MIUtils.TreeViewToXML(TreeView treeViewOne, string filename). This value is kept in the treeView1.Nodes[x].Tag field and is assigned in Form1.CreateTreeView() and Form1.InsertUnderParent
nameInventory object's nameThis is an attribute for an element tag. Assign an object's name here. eg. name="Dice (drag to ground)". In SLMIV, this value gets assigned by the TreeNode's Text value.
uuidInventory object's UUIDThis is an attribute for an element tag. Assign an object's UUID here. eg. uuid="cedfdd9a-2557-be30-4bcb-553363434106". In SLMIV, this value gets assigned by the TreeNode's Name value.
imageIcon that is displayed for the inventory objectThis is an attribute for an element tag. Assign an object's treeView icon here. eg. image="5". SLMIV.Utils.MIUtils.ImageWriteAttributeString(XmlTextWriter xmlw, TreeNode node) See the table below for the current images and their values. In SLMIV, SLMIV.Utils.MIUtils.Getinv_type(string invtype) is used to evaluates the Item's inv_type tag, or Folder's pref_type to return an imagelist value.

Icon Images and Values

Main ImageList in SLMIVSLMIV.Utils.MIUtils.Getinv_type(string invtype)

Example XML

example.xml


Sign in to add a comment
Hosted by Google Code