I am looking for a method to write a valid XML DateTime to an XML document created when using the dom4j and writing to an XML file without using a POJO.
The problem that I am having is that I am using a "timestamp" type and the resulting XML document is not valid because the dates are not valid XML DateTimes accoring to the W3C XSD specification.
Is there a way to map the file so that it will persist the timestamp types in a valid xml datetime? I need to extract the datetime in "yyyy-MM-dd'T'HH:mm:ss" format as defined by the W3C XSD specification. Since this is the standard XML date format I expect that there is a way to do this without creating a usertype, but I cannot find it.
Any help, or directing me to any documentation on this will be greatly appreciated.
_________________ David J
|