[jdom-interest] SAXBuilder with regards to the textcontent

Jason Hunter jhunter at collab.net
Fri Dec 8 17:54:49 PST 2000


The question is, do we create a set method for it, or a more general
purpose SAX filter mechanism that allows people infinite control, and
provide a pre-written filter for this?

-jh-

Kesav Kumar wrote:
> 
> I wrote this earlier.  I actually modified the SAXBuilder code locally for
> my purpose.  I am very much intersted in having flag in Builder and to get
> rid of the unnecessary blank strings which I guess saves some memory.
> 
> Kesav Kumar
> Software Engineer
> Voquette, Inc.
> 650 356 3740
> mailto:kesavk at voquette.com
> http://www.voquette.com
> 
> -----Original Message-----
> From: Jason Hunter [mailto:jhunter at collab.net]
> Sent: Thursday, December 07, 2000 6:15 PM
> To: Kesav Kumar
> Cc: jdom-interest at jdom.org
> Subject: Re: [jdom-interest] SAXBuilder with regards to the textcontent
> 
> (Digging through old email.)
> 
> > When an element has any text content JDOM behaves very strangly the
> > mixedcontent gives lots of blank strings and its really difficult to
> > find out what is the index of the text content.  Why don't we get
> > rid of the blanstrings insertion into the mixedcontent?
> 
> Because it's required by the XML spec.  I am though in favor of a flag
> on builders that would let you strip whitespace.
> 
> -jh-



More information about the jdom-interest mailing list