users@jaxb.java.net

Re: schema location or namespace of JAXB object

From: Kenny MacLeod <kennym_at_kizoom.com>
Date: Wed, 27 Jun 2007 13:00:14 +0100

> Isn't SchemaFactory reliant on a .xsd ?

It is, but JAXB isn't reliant on schema at all. You can inject a Schema
into the JAXB unmarshaller if you wish, but that's only to add validation.

> My problem is that at runtime I don't have access to the schema but to
> JAXB instances generated from a .xml unmarshalling.
> And I want to access the schema location information from any JAXB object.

JAXB itself gives you no help there, you'll need to locate the schema
yourself.