users@jaxb.java.net

Re: unmarshalling ignores element-attribute 'xml'

From: Wolfgang Laun <wolfgang.laun_at_gmail.com>
Date: Wed, 18 Mar 2009 14:22:47 +0100

On Wed, Mar 18, 2009 at 1:16 PM, korsdal <nabble_at_chicken-flu.de> wrote:

>
> thanks.
>
> but i am forced to use a DTD.


I was afraid you'd write that.

>
>
> can i map the default ns somewhere else? programmatically?
> or within xjb-file?
>
> converting the dtd to a xsd might work, but can not be integrated easily
> into maven.


I've seen plain shell script invocations implemented in maven.


>
> i need to deal with different DTDs, don't want to convert them manually all
> time.
>
> so i am still looking for "the" jaxb-property to set.
>

JAXB has customizing w.r.t. to DTD as a "non-goal".

One possibility would be the implementation of an xjc plugin that iterates
through the classes while they are still com.sun.codemodel objects and adds
the annotations to all "lang" String fields. That would be fairly easy to
write.

-W


>
> tim
> --
> View this message in context:
> http://www.nabble.com/unmarshalling-ignores-element-attribute-%27xml%27-tp22558466p22577873.html
> Sent from the java.net - jaxb users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>