By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,468 Members | 1,865 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,468 IT Pros & Developers. It's quick & easy.

jaxb namespace declaration

P: n/a
Hi there

I use SUN's reference implementation of JAXB to generate xml bining.

I use two different namespaces ("blah:first" and "blah:second"). some
tags of "blah:first" may include tags of "blah:second". The xsd shows
that and it compiles fine. When I make use of a Tag from "blah:second"
in "blah:first" the marshaller produces the following xml:

<Tag1 xmlns="blah:first">
<ns1:Tag2 xmlns:ns1="blah:second">blahblah</ns1:Tag2>

I would prefer something like this:

<Tag1 xmlns="blah:first">
<Tag2 xmlns="blah:second">blahblah</Tag2>

How can I convince the reference implementation that it produces xml
namespace declaration just like the second example?

Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.