Hi Kent,
Xerces-J doesn't convert durations into a number of seconds, because it's not generally possible to convert one into a fixed number of seconds; instead, they're represented internally by their component durations - years, months, etc. However, representing the value as a fixed number of seconds might be a useful optimization for durations that consist only of days, hours, minutes and seconds. . . .
Thanks,
Henry
------------------------------------------------------------------------
Henry Zongaro XML Parsers development
IBM SWS Toronto Lab Tie Line 969-6044; Phone (905) 413-6044
mailto:[EMAIL PROTECTED]
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc:
Subject: xml schema datatype converting
given a String of something like "P1DT25M2S" of type xsd:duration, how
would i use built-in methods of xerces to convert that to a number of
seconds? I could parse it on my own, but I figured if xerces can validate
it, perhaps it has methods to convert it too..
thanks for the help
kent
