[jdom-interest] Schema validated elements

Naresh Bhatia NBhatia at sapient.com
Mon Jun 24 18:09:44 PDT 2002


I am new to JDOM. I have a couple of basic questions about retrieving
elements from a JDOM document object:

1) Is there any way to get Schema validated elements as appropriate Java
objects. For example, <timestamp>2002-06-01T09:00:00Z</timestamp> to be
retrieved as java.util.Date or java.util.Calendar insted of a String.

2) If not, what is the best way to convert data types defined in XML schema
from strings to appropriate Java types? (i.e. should I start parsing these
strings myself using SimpleDateFormat etc?)

Naresh Bhatia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20020624/ed85c2ed/attachment.htm

More information about the jdom-interest mailing list