users@jaxb.java.net

Re: JAXB with DTDS

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Wed, 18 Jun 2003 09:02:38 -0700

> 1) Is is possible to build the JAXB classes with the vendor superclass
> extensions using a DTD? If so is this advisable to do so or would be be
> better off moving our DTDs into XML schemas like I am currently
> implementing. Does anyone know if support will be made to extend super

I can change our code, but it will probably take some time before you
can get the new binaries. So you'd be better of migrating to RELAX NG or
XML Schema.

> I am currently having the problem when unmarshalling since the xml file
> references the older dtd....this reference is in all our customer xml
> files. I think the solution to the problem is to pass the unmarshaller
> object my own SAX parser that has a schema resolver in it and point to
> my new schema or a blank file. Anyone have a better solution or have
> experienced this problem?

You are on the right track.


--
Kohsuke Kawaguchi <kohsuke.kawaguchi_at_sun.com>