Hi Anand,
Thanks for the response, I'd like to clarify something. Given a
situation where I have dozens of schemas, each containing hundreds of
elements, do I need to have a:
<jxb:package name="org.tgslc.advweb.crc.state.v1.response"/>
<jxb:nameXmlTransform>
<jxb:elementName suffix="Element"/>
</jxb:nameXmlTransform>
configuration for each one of them? If so, I don't think its going to
be manageable.
I'm not treating this as a show stopper, intellij should do a nice job
of migrating, but its something I'd prefer to defer till later...
cheers
dim
On 6/1/05, Vallamshettla, Anand <Anand.Vallamshettla_at_tgslc.org> wrote:
> You can customize package names inline or using external xjb file.
>
> Sample of xjb file.
>
> <jxb:bindings schemaLocation="CommonLineResponse_v1.0.2.xsd"
> node="/xs:schema">
> <jxb:schemaBindings>
> <jxb:package name="org.tgslc.advweb.crc.state.v1.response"/>
> <jxb:nameXmlTransform>
> <jxb:elementName suffix="Element"/>
> </jxb:nameXmlTransform>
> </jxb:schemaBindings>
> </jxb:bindings>
>
> Anand Vallamshettla
> Texas Guatanteed Student Loan
> Ph: 512 219 5700 x4481
>
>
>
> -----Original Message-----
> From: Dmitri Colebatch [mailto:colebatchd_at_gmail.com]
> Sent: Tuesday, May 31, 2005 1:09 AM
> To: users_at_jaxb.dev.java.net
> Subject: migration from xmlbeans to jaxb?
>
> Hi list,
>
> I'm doing some initial investigation into the possibility of migrating
> from xmlbeans to jaxb. Our situation is this: we have a desktop app
> that has a lot of relatively static data that we get from the server
> as the response to a doc-centric soap call. Because we have so many
> of these calls, coupled with the relatively heavy memory use of
> xmlbeans, we're looking to retain the responses in a lighter object
> model. We don't modify these responses, but make heavy use of the
> interfaces that xmlbeans generates.
>
> So, I have one real question for now, being is there a straightforward
> way to change the generated packages (for namespace
> http://foo.com/2005/05/31) from com.foo._2005._05._31 to
> com.foo.x2005.x05.x31 (ie to match xmlbeans so we don't have to change
> a whole bunch of code)? If this isn't possible, obviously we can
> change our code, but if its easily avoidable we may as well. I've
> looked
>
> A second, and more general question, is has anyone migrated this
> direction previously, and if so did they have any reports on any
> gotchas? We use includes and imports in our schemas, but I've done a
> schema build that seems to have worked ok so far on the early access
> version of jaxb 2.
>
> cheers
> dim
>
> ---------------------------------------------------------------------
> 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
>
>