Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to specify xml encoding while generating xml in java using Dom

843834Dec 31 2007 — edited Jan 2 2008
I had generated an xml using java using Dom. In the xml though i'm not specifying the version and encoding attributes by default version and encoding are coming like this
<?xml version="1.0" encoding="UTF-8" ?> .. i want to change the encoding value as "windows-1251..

Can anyone help please!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 30 2008
Added on Dec 31 2007
5 comments
886 views