OpenSimulator:Xml Serialization

From OpenSimulator

Revision as of 12:31, 23 January 2008 by Lbsa71 (Talk | contribs)

Jump to: navigation, search

Opensimulator Xml Serialization Format 3


  • Attributes and elements should map 1-to-1 with normalized object structure and hence protocol fields
  • Xml should be as terse as possible whilst generating intuitive results
  • The xml format should weigh human readability against the cost of parsing and re-calculation
  • The format should never introduce unintuitive constructs or cases

Draft speculation

  • Since almost all fields have three distinct flavours ("SL GUI values", "LSL PrimitiveParams values" and "Protocol values") we should be able to specify values with units. The default unit should be "Protocol values".
  <... taperX="200" ...> means protocol value 200
  <... taperX="1.0" ...> could mean LSL value 1.0 (which is protocol 200)
  <... taperX="100%" ...> could mean SL gui value 1.0, although this is actually not strictly what is displayed (somebody come up with a good idea of how to mark lsl vs ui values)
  • The fields that are enumerated should be encoded as either element types, attribute strings or attribute numbers. The default should be attribute numbers.
  <Object ...> means PCode 9 (Primitive)
  <Tree ...> means PCode x (Tree)
  <Avatar ...> means PCode z (Avatar)
  <... extrusion="straight" ...> means protocol value 0 (PathCurve.Straight)
  <... extrusion="1" ...> means protocol value 1 (
Personal tools
About This Wiki