Re: dateTime.iso8601 format

Bill Moseley <[email protected]> Wed, 9 Jul 2008 11:44:10 -0700
Newsgroups gmane.text.xml.rpc.specification
Message-ID <[email protected]>
On Wed, Jul 09, 2008 at 03:54:30PM +0000, [email protected] wrote:
> 
> >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.

Again, I'm using the Perl module RPC::XML and it includes a way to
force all data into a <string>.  I kind of wished I used that
approach. ;)  I could just say "foo" is of type string and represents
a timestamp in this format, including the "Z" and all would be well.

BTW -- the Perl module does not do any validation on the datetime.
It will blindly accept:

    <dateTime.iso8601>today</dateTime.iso8601>


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

I'm not sure it's that clear.  A value in a database can be NULL or an
empty string and sometimes you need to know the difference.

This doesn't effect any thing I'm working on at this time, but I was
just curious how to handle the situation, if needed.

Thanks,

-- 
Bill Moseley
[email protected]
Sent from my iMutt


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

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/