Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Serialize selected elements to a Writer.

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "David Bullock" <db AT dawnbreaks.net>
  • To: "Elliotte Harold" <elharo AT metalab.unc.edu>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Serialize selected elements to a Writer.
  • Date: Tue, 17 Oct 2006 00:16:08 +1000

On 10/14/06, Elliotte Harold <elharo AT metalab.unc.edu> wrote:

David Bullock wrote:

> Serializer(Writer out, String encoding)
>

That's a hack, and a little ugly. Really the Writer interface should
provide this info. However given that it doesn't, maybe this is
acceptable. Let me sleep on it.


My own ruminations tend towards the idea that the Writer should itself be
performing the escaping, since the target encoding of the Writer is private?

cheers,
David.
(by no means a character-encoding expert)

PS. Thanks to others for their posts, too.




Archive powered by MHonArc 2.6.24.

Top of Page