> > (2) Could somebody point out how could I use Xerces implementation to
> > validate a string (lexical value) against all the builtin simple types
> and
> > any derived simple types? I would like to reuse the code that is making
> sure
> > a dateTime follows the spec. And also convert that same string to a java
> > value holder?
>
> Good question. In fact, the schema datatype implementation in Xerces-2 was
> designed with this in mind: it can be used as a separate library for string
> validation. We planned to put some FAQs or samples about the usage of it,
> but didn't get there yet. Here I'm attaching a sample file written by
> Neeraj Bajaj, which describes how to use the library directly.
I have added this sample file in CVS, under samples/simpletype directory, which
uses Schema datatype implementation as separate module.
It would be available with first bug-fix release of Xerces2 coming out
soon.
Regards,
--
Neeraj B.
Sun Microsystems, inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]