[jdom-interest] XMLOutputter & StringWriter

Alex Chaffee guru at edamame.stinky.com
Tue Jul 4 03:24:58 PDT 2000


Sorry, I didn't read your reply before making mine.

Sounds like we need to be able to say writer.getEncoding(), as in

 "<?xml version=\"1.0\" encoding=\"" + writer.getEncoding() + "\" ?>"

but unfortunately, that method is only defined on OutputStreamWriter.
Therefore Jason is right, and we need to "cheat" and pass the desired
encoding in directly to the XMLOutputter.

I think. :-)

-- 
Alex Chaffee                       mailto:alex at jguru.com
jGuru - Java News and FAQs         http://www.jguru.com/alex/
Creator of Gamelan                 http://www.gamelan.com/
Founder of Purple Technology       http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/



More information about the jdom-interest mailing list