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: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: David Bullock <db AT dawnbreaks.net>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Serialize selected elements to a Writer.
  • Date: Fri, 13 Oct 2006 11:41:49 -0400

David Bullock wrote:

a) Serializer took a java.io.Writer in one of its constructors, since this
is all that pageContext.getOut() can supply me with;

The problem is that a Writer doesn't give you enough information to tell which characters need to be escaped and which don't. JDOM floundered on this shoal too, though they went the other way; serializing to writers but potentially producing malformed output. I'm not sure there's a good option here. :-(

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/




Archive powered by MHonArc 2.6.24.

Top of Page