users@jaxb.java.net

xmlns:ns2 and friends

From: Johnny Tolliver <jxt_at_ornl.gov>
Date: Mon, 13 Nov 2006 16:45:37 -0500 (EST)

This is certainly a newbie question, maybe even an RTFM question, but a real
quick look didn't reveal the answer.

When I build JAXB objects that use multiple namespaces and marshal them into
XML, the resulting XML defines namespace abbreviations like xmlns:ns2. If I
used more namespaces, they would surely be ns3, ns4, etc. Is there any way
to get the abbreviations to be the names I want rather than those arbitrary
names? Thanks.

Johnny S. Tolliver
Oak Ridge National Laboratory
tolliverjs_at_ornl.gov, 865-574-1305