[xsd-users] comparison operation

Rizzuto, Raymond Raymond.Rizzuto at sig.com
Tue Sep 2 13:31:00 EDT 2008


Thanks for the links.  I'll play around with this on the 3.2.0 version, once I can make time on my plate to work with that version.  Due to deadlines, I need to forge ahead with the 3.1.1a7 version I've been using.

Ray

-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com]
Sent: Sunday, August 31, 2008 6:18 AM
To: Rizzuto, Raymond
Cc: xsd-users at codesynthesis.com
Subject: Re: [xsd-users] comparison operation

Hi Ray,

Rizzuto, Raymond <Raymond.Rizzuto at sig.com> writes:

> I can't access the first URL - I get an "Object not found!| Message when
> I try.  I believe that is the same link as from your 3.2.0 beta1 release
> posting, and I did look at that 2 days ago, so maybe it will be back later.

Ok, I've removed 2 from www2 in all the places.


> I'm hoping I can set the precision to 6 places so that timestamps will
> round trip at the microsecond range.

On the second thought, perhaps it can work if the numbers you are
trying to serialize are also rounded to this precision (that is, the
binary representation will have more digits but they will be the same).

Another alternative would be to compare string representations. For
example, you could defined the Timestamp type in XML Schema by deriving
from double. You would then customize this type and provide your own
comparison operator implementation which compares two Timestamps as
strings with precision 6. This will be slower but will work on all
platforms.


> I'd be interested in reading the post about VC++ and round-trip for
> floats if you can find it.

It is this (long) thread on boost-devel:

http://lists.boost.org/Archives/boost/2006/03/101988.php


The posts of particular interest are:

http://lists.boost.org/Archives/boost/2006/04/102744.php

http://lists.boost.org/Archives/boost/2006/04/102833.php


Boris

IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.




More information about the xsd-users mailing list