Mesh/Avatar Shape XML Format

History

The Shape XML format has been ingrained in the viewer since the early days, long before mesh existed. However, with the addition of rigged mesh and customized clothing, the file has become invaluable to creators. Sometimes called an "archetype file" due to it's default name "new_archetype.xml".

With the release of Server Side Appearance in Early 2013, The XML format has inherited additional information. However, its XML version number is still 1.0, and it is still backward compatible with the original terse format. The additions will be outlined separately in the SSA Extensions section.

Header

The file is standard XML, with 3 parameters:

Note that some viewers set standalone="true". This is technically incorrect via the XML standard. It should be standalone="yes".

Root Node

The root node is of type linden_genepool with one parameter:

Data Body

The Root node contains one node of type archetype with one parameter.

The Data

The data inside is a list of parameters and textures associated with the Avatar's appearance. These can be broken up into 4 categories:

Each category will have several param nodes and possibly texture nodes included. More about these nodes in the next section.

Param Nodes

param nodes correspond to sliders in the appearance pane. Each has 3 parameters:

Texture Nodes

texture nodes correspond to textures applied via the appearance pane. Each has two parameters:

Note that texture nodes are optional and not guaranteed to be present. Especially when the file is generated from 3rd party sources.

Comments

Comments are styled in the standard HTML style, with the string

<!--

denoting the start of a comment, and

-->

denoting the end of a comment. This is per the XML specification.

File Termination

The file is terminated by the closing of the archetype and linden_genepool nodes:

SSA Extensions

The Two main changes with Server Side Appearance are the addition of many new param nodes , and the inclusion of new data in all param nodes.