User talk:SignpostMarv Martin/swslr/api

From Second Life Wiki
Jump to navigation Jump to search

Input

It would be beneficial to have a method for requesting the properties of several Residents/Groups etc. simultaneously.

Any opinions on the input format ?

SignpostMarv Martin 23:20, 31 March 2009 (UTC)

Output

Is an XML output option necessary ?

Given that JSON is supported by every major language, and some I've never heard of[1], is an XML output format necessary ?

Reasons against it would be the bit/bandwidth bloat in order to transmit the message (XML elements), and the additional overhead for loading up an XML parser. There's also the matter that "JavaScript does not allow you to access documents (be they XML or HTML) that come from another server. However, if you import a JSON file as a script tag you circumvent this problem, and any JSON data can be imported into any website."[2]

Reasons for it is that DTD or RelaxNG validation could be done prior to processing to catch any issues early on. There's also the advantage of using XSL after validation to transform it into another format, rather than manual transformation.

SignpostMarv Martin 23:59, 31 March 2009 (UTC)