Re: dateTime.iso8601 format

[email protected] 9 Jul 2008 15:54:30 +0000
Newsgroups gmane.text.xml.rpc.specification
Message-ID <[email protected]>
>http://www.xmlrpc.com/spec also says:
>
>    Don't assume a timezone. It should be specified by the server in
>    its documentation what assumptions it makes about timezones.

As short as it is, the spec says a number of crazy things.  The server
can document anything it wants, even violations of XML-RPC, so there's
no need for this kind of statement.  I.e. even assuming the "timezone"
is always UTC, the server is free to document, "the server varies from
XML-RPC in that it interprets dateTime.iso8601 as Pacfic Standard
Time."  It doesn't serve any purpose for the XML-RPC standard not to
pick a particular time standard.  It also makes is impractical to
implement a general purpose XML-RPC library, since it would naturally
want to translate the dateTime.iso8601 element into some universal
datetime form.

>Are you aware of any client libraries that would care about the "Z" on
>the dateTime.iso8601 data type? 

My guess is that most will reject it as invalid XML-RPC.  The one I
maintain, XML-RPC For C/C++, does.

>Is that an empty string or undefined/null string?

I think it's clear that it has to be an empty string (zero length
string) because such strings are normal and this is the obvious (and
only) way to represent one.  On the other hand, XML-RPC aside, I use
the term "null string" to describe a zero-length string, and I often
use a zero-length string to represent an "undefined" value, so the
question is a little ambiguous.

>What about <int></int>?

On the other hand, this has to be invalid because it isn't any normal
representation of a number and the spec doesn't explicitly give it
meaning.

-- 
Bryan Henderson                                   San Jose, California

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/xml-rpc/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/xml-rpc/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/