users@jaxb.java.net

how to change the the xmlnamspace prefix from "n2" to something like "myPrefix"

From: Andy Davidson <andy_davidson_at_apple.com>
Date: Wed, 26 Jan 2011 16:43:32 -0800

Hi

I need to integrate with a legacy system that can not be changed. It requires that my tags have a special prefix to work correctly. Currently the jaxb run time generates a random prefix. something like to "n2". Any idea how I can set the prefix value?

I have seen a couple of example that talk about implementing com.sun.xml.internal.bind.marshaller.NamespacePrefixMapper
however given the package name is marked "internal" I think this is probably a bad idea

thanks

Andy

p.s. we generate our POJO's using xjc so java annotation are not going to work for us.