Tuesday, June 24, 2008

XML Revision 1

Here is a sample format for a proposal of the new XML format. As a reminder, old XML files will still be valid. The new editor will not be able to produce those files, but it would be able to still read them. The purpose of this new format is to make the XML more structured and readable, and to help provide the flexibility needed for escaping the limitations of the Mii™ character format.
<avatars>
<Avatar>
<code></code>

<id></id>
<name></name>
<author></author>
<client-id></client-id>
<birth-day></birth-day>
<birth-month></birth-month>
<gender></gender>
<mingles></mingles>
<height></height>
<weight></weight>

<Head>
<type></type>
</Head>
<Hair>
<type></type>
<color></color>
<part></part>
</Hair>
<Skin>
<color></color>
</Skin>
<Face>
<type></type>
</Face>
<Eye>
<type></type>
<color></color>
<x></x>
<y></y>
<size></size>
<rotation></rotation>
</Eye>
<Eyebrow>
<type></type>
<color></color>
<x></x>
<y></y>
<size></size>
<rotation></rotation>
</Eyebrow>
<Glasses>
<type></type>
<color></color>
<y></y>
<size></size>
</Glasses>
<Nose>
<type></type>
<y></y>
<size></size>
</Nose>
<Mouth>
<type></type>
<color></color>
<y></y>
<size></size>
</Mouth>
<Mustache>
<type></type>
<color></color>
<y></y>
<size></size>
</Mustache>
<Beard>
<type></type>
<color></color>
</Beard>
<Mole>
<type></type>
<x></x>
<y></y>
<size></size>
</Mole>
<Shirt>
<color></color>
</Shirt>
<Pants>
<color></color>
</Pants>
</Avatar>
</avatars>
Each object is separated into its own node with its own set of characteristics that relate to that object. This (mostly) follows the actual programmed representation within the character model of the editor itself. Though, the original format actually fit better because of the abstraction I provided to easily modify any of these properties directly off a single object (this could take some additional effort on the backend to have these sync up).

This proposal is not final and suggestions are welcome.

1 comment:

Martijn said...

So now you will be dropping all the attributes out? Interesting move since our last discussion here on the blog. I myself find this much cleaner to work with.

will be waiting for more updates.