users@jaxb.java.net

Re: ENTITY resolving and (separate) problems with Xerces?

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Thu, 02 Sep 2004 09:58:54 -0700

> (1) ENTITY resolution
>
> does it seem a reasonable thing to try to do?

Like you say, it's a hack, but I guess it would work.

> I guess its as simple as adding an EntityResolver to an XmlReader and
> then having jaxb unmarshalling happen via a SaxSource?

Yes. Or you can set UnmarshallerHandler as a ContentHandler to your
parser.


> (2) Problems with Xerces (?)
>
> When using Xerces as a validating or non-validating parser I'm getting
> an error message saying
>
> "Unexpected end of element {}:VAR"

Do you have the stack trace of the error?



regards,
--
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net