Andrew Hughes wrote:
> Hey All,
>
> When I am mashalling my Java Objects to XML, I end up with some xmls that are
> now pointing to dead urls because the outside world has moved them (Grrrrrr).
Namespace URIs need not point to an HTTP URL that returns some page.
> We need this working for validation and I would like to know how I can change
> the xmlns target url's. I can't see anything in the classes I have created
> during the bind operation. Is this fixed during the bind? or can I override this
> somehow in jaxb?
Chances are XJC has put the namespace URI in package-info.java. Take a
look at that file. You can certainly manually change it if you want.
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com