users@jaxb.java.net

control namespace-prefix

From: ivan <ivan_at_dhousestudio.com>
Date: Mon, 03 Nov 2008 11:14:07 +0200

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?


Thanks in advance.