XML Encoding Problem

From: Reazul Hassan <>
Date: Thu, 18 Jan 2007 17:24:35 +0900

I am not sure if this is the right place to post my problem, if not please
point me to correct mailing list.

I am using JAXP and facing an encoding problem. I am trying to parse an HTML
file using JAXP.
The input HTML file encoding is set as "SHIFT_JIS" . During dom building
phase i am getting the encoding
value correctly by "document.getInputEncoding()" method. But during the dom
writing (serialization)
phase i see the document is saved in "UTF-8".

What should i do so that DOM document correctly saves my html in its
original encoding ?

Reazul Hassan