You can do a regular expression pattern restriction on the xs:string data type For example: xs:element name="specialDateTime.
You can do a regular expression pattern restriction on the xs:string data type. For example: Edit I found this example at cs.wisc.edu/condor/classad/refman/node9..... It looks like you can put a pattern restriction on a dateTime: Hope that helps.
Yes I know. But I was hoping for something that derives from dateTime, so that I can use XMLBeans as an automated Schema-to-Java mapper. – nd.
Dec 14 '09 at 8:23 I've never tried using a pattern element with anything other than a string before, but maybe it would actually work with dateTime. It's certainly worth a try. – DanM Dec 14 '09 at 8:29 I can't think a better answer than this .. Certainly XSD bound with hell of restrictions .. You can't use XSD in your own way .. – infant programer Dec 14 '09 at 9:30.
I don't think you can derive something else from xsd:dateTime, as the XML processors will not be able to understand this. Your best bet is to use a string with the right pattern.
Yes .. I agree .. too – infant programer Dec 14 '09 at 9:29.
I have a legacy system that produces XML with timestamps similar to ISO 8601, but with space used to separate date and time. I would like to define a schema that defines the possible range for these timestamps. Xsd:dateTimewould be well suited for that purpose, however, it uses T as the separator between date and time.
I cannot modify the legacy system to return timestamps using T as a separator. Is there a way to have a simpleTypedefinition that derives from xsd:dateTime, but alters the separator or do I have to rely on a string with an appropriate pattern and human readable comments? Update: As I understand, I can use a pattern for dateTime to restrict the range of dateTime objects for input, but this does not alter the separator character.
This would only allow for dateTime with years starting with 2000 and without fractional seconds and time zone information. It is not possible to use xs:dateTime as the base type for this. It is however possible to use xs:stringand define a pattern.
By using a string, of course, any automatic tools that use the Schema to create language bindings will also retrieve a string, conversion to the appropriate language type for date/time has to be done by hand.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.