[xsd-users] duration

Boris Kolpackov boris at codesynthesis.com
Wed Jul 2 04:44:08 EDT 2008


Hi Alan,

Alan Pettitt <ap at kaon.co.uk> writes:

> I am using xsd v3.1.0. I generate a duration in XML say 2 hours, which
> successfully gets converted to "PT2H" by xsd. However, when parsing all
> the fields which are not used are set to illegal values - only the hours
> field is valid, the others, which I would expect to be zero, contain
> random, uninitialised values.

That's a bug which I've fixed for the next release. You can also
fix it in 3.1.0 by replacing parsing/date-time.txx with the one
provided in this archive:

http://www.codesynthesis.com/~boris/tmp/xsd-3.1.0-duration.tar.gz

Thanks for reporting this!

Boris




More information about the xsd-users mailing list