dev@jaxb.java.net

Re: xjc at runtime

From: Kostis Anagnostopoulos <ankostis_at_gmail.com>
Date: Wed, 10 Jan 2007 16:50:52 +0200

Hi hussein

On 1/10/07, hussein <hussein_at_bisan.com> wrote:
>
>
> hi :
>
> i use JAXB 2.0 and i wanna know if i can use the JAXB compiler (xjc) at the runtime by
> my own code , like a method or class that can compile xml schema to java beans, rather
> than generate the beans in the command-line approach. coz my xml schema changes at
> runtime . ????????

Look at the maven2 plugin code here:
  https://maven-jaxb2-plugin.dev.java.net/

or at the ant task code.

They both invoke the xjc compiler.

Regards,
  Kostis