Hi Group,
In my XML output stage i need to emit date-time values for certain fields from a database column.
When i let XML Output stage to produce the datetime values, it generates datetime values like "2007-05-22 14:32:59.140". When i run this against my schema, which has these elements defined to be of type xs:dateTime, i get the following error
Datatype error: Type:InvalidDatatypeValueException, Message:Value '2007-05-22 14:32:59.140' is not in enumeration.
Looking up at http://www.w3.org/TR/xmlschema-2/#dateTime it appears that i should be emitting this as '2007-05-22T14:32:59Z'
Is there any direct routine in datastage to accomplish this or should i write my own? Or am i totally off course?
Your input/suggestions are much appreciated.
Thanks,
XML dateTime formatter
Moderators: chulett, rschirm, roy