Difference between revisions of "User talk:SignpostMarv Martin/swslr/api"

From Second Life Wiki
Jump to navigation Jump to search
(I/O topics)
 
 
Line 10: Line 10:
Given that JSON is supported by every major language, and some I've never heard of<sup>[http://json.org/]</sup>, is an XML output format necessary ?
Given that JSON is supported by every major language, and some I've never heard of<sup>[http://json.org/]</sup>, 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.
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."<sup>[http://www.quirksmode.org/blog/archives/2005/12/the_ajax_respon.html]</sup>


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.
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.


[[User:SignpostMarv Martin|SignpostMarv Martin]] 23:20, 31 March 2009 (UTC)
[[User:SignpostMarv Martin|SignpostMarv Martin]] 23:59, 31 March 2009 (UTC)

Latest revision as of 16:59, 31 March 2009

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)