users@jaxb.java.net

Re: control namespace-prefix

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Mon, 3 Nov 2008 10:21:50 +0100

Hi.

> I have some xsd-schema and generated classes.
>
> I work with object model and would to save it to xml-file.
>
> And namespace-prefix is added to tags.
>
> I would like to remove custom prefix from custom tags and use it only in the
> parent tag. Example:
>
> Existing:
>
> <ns:mytag xmlns:ns="htpp://example.com">
> <ns:mysubtag>
> <ns:/mysubtag>
> <ns:/mytag>
>
> Aim:
>
> <ns:mytag xmlns:ns="htpp://example.com">
> <mysubtag>
> </mysubtag>
> <ns:/mytag>
>
>
> How can I do it?

https://jaxb.dev.java.net/guide/Changing_prefixes.html

Bye.
/lexi