-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate timestamp type not producing valid XML datetime
PostPosted: Mon Jan 05, 2009 7:59 pm 
Newbie

Joined: Mon Jan 05, 2009 7:12 pm
Posts: 1
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.