users@jaxb.java.net

Re: schema location or namespace of JAXB object

From: Christophe Alexandre <alexandre_at_magillem.com>
Date: Wed, 27 Jun 2007 11:15:57 +0200

Hi, thanks for your answer.

Isn't SchemaFactory reliant on a .xsd ?
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.

Regards.
Christophe




Le 26 juin 07 à 21:32, KennyMacLeod a écrit :

> JAXB is not reliant on a schema, it works quite happily without it,
> even if you generate java source from a schema using XJC.
>
> If you want to access the schema at runtime, then you need to
> supply to location yourself, using SchemaFactory.
>
> Christophe Alexandre wrote:
>> Hi all,
>> This may be a very simple question...
>> How can I get the schema location of a JAXB object ?
>> Regards.
>> Christophe
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
>> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>