Hi Yuemin,
Have you ported your application to jaxb-1.0-beta? If so, I'm still not
understanding the problem you're having. So we have a common
understanding, I make these points:
- jaxb-1.0-beta supports XML Schema, not DTD.
- The validate method is a member of the Validator class, specified in
Section 3.4 of the specification[1].
- [2] describes the Validator API.
- [3] shows how to do on-demand validation.
Does any of this help?
Regards,
--
Ed Mooney |Sun Microsystems, Inc.|Time flies like
Java Web Services |UBUR02-201 |an arrow, but
Ed.Mooney_at_Sun.COM |1 Network Drive |fruit flies like
781-442-0459 |Burlington, MA 01803 |a banana. Groucho
[1] http://java.sun.com/xml/downloads/jaxb.html
[2] http://java.sun.com/xml/jaxb/api/javax/xml/bind/Validator.html
[3] http://java.sun.com/xml/jaxb/users-guide/jaxb-using.html#sampapp5
Yuemin Wang wrote:
> Hi Ed,
>
> You misunderstood my point, "return OK" in my mind is "no exception is
> throwing".
>
> You know all my marshall is not OK because of this validation. All the
> field with "?", I have to generate an dummy field in order to pass
> validation, this against the DTD definition of an option field. That is why
> I think this is a bug.
>
> Thank you
>
> Yuemin
[ ... ]