users@jaxb.java.net

escape character and rename namespace

From: Christoph Brunner <news_chbr0001_at_YAHOO.DE>
Date: Wed, 11 Jun 2003 08:37:56 -0600

Hi,

i export xml data with german umlauts (?,?, etc.)
The standard marshaller convert for example ? to &#246;
But i want to export ? instead of &#246;
The JAXB example character-escape shows how to write your own characterEscapeHandler.
I do so and it works.
But i want to rename the namespaces too!
To renaming the namespaces i use the DataWriter from David Megginson.

If i execute marshaller.marshal(rootElement,dataWriter) then the namespaces are renamed but not the umlauts.
If i execute marshaller.marshal(rootElement,System.out) then the umlauts are converted correctly.

Any idea?

Thanks
Christoph Brunner