|
Follow-up date formatting question: msg#00117text.xml.xmlbeans.user
I need some help formatting the output of dates using v1.0.3. In searching the archive ... on May 12, 2004 Eric Vasilik wrote: "... one way to deal with your time-zone issue is to add an option which controls how the date is converted to text. We do have at least one document-wide setting for controlling is we validate simple types on upon set. It might be appropriate to add others." Was such an "option" added to globally format dates? If not, what I need to do is have the output of dates be of the format: yyyy-MM-dd'T'HH:mm:ss.SSS-zz:zz . What xmlbeans creates with toString() or xmlText() is: yyyy-MM-dd'T'HH:mm:ss.SSS'Z'. I have a routine that uses SimpleDateFormat to convert a Calendar into a String of that format ... if that is of any use. One way to solve the problem is to parse through all of the xml and reset the Date/Calendar with a XmlCursor, but that is both time consuming, and requires modules that don't manipulate the xml in any way to have knowledge of where each date is located in the schema ... which throws a lot of re-use out the window. Any help would be appreciated. Thanks, Tom Gordon |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: Problems trying to use annotation support in v2: 00117, Jim McMaster |
|---|---|
| Next by Date: | rmic problem with xmlbeans and websphere: 00117, florian.hehlen |
| Previous by Thread: | Problems trying to use annotation support in v2i: 00117, Jim McMaster |
| Next by Thread: | RE: Follow-up date formatting question: 00117, Radu Preotiuc-Pietro |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |