[jdom-interest] setIgnoringElementContentWhitespace inoperant ?

Eric VERGNAUD eric.vergnaud at wanadoo.fr
Thu Dec 9 05:34:51 PST 2004


le 9/12/04 14:07, Eric VERGNAUD à eric.vergnaud at wanadoo.fr a écrit :

> le 9/12/04 13:38, Elliotte Harold à elharo at metalab.unc.edu a écrit :
> 
>> setIgnoringAllWhitespace()  is the wrong name for this functionality. Do
>> you really want to throw away all white space?
>> Eveninrecordlikedocumentsthiscouldbeveryhardtoread. I think what you
>> really want to do is throw away all text nodes that consist of white
>> space exclusively, but retain all white space in text nodes that contain
>> any non-whitespace characters. The correct name for this method would
>> be setIgnoringBoundaryWhitespace(). The functionality proposed is fine.
>> I just want to make sure we get the name right.
> 
> Yes that's definitely the proper naming. The functionality would be a little
> more strict: throw away all text nodes that consist of white space
> exclusively for elements that have no children. I'm not sure it would be
> fine to remove white space for elements that have no children.
> 
> Eric
> 

I meant:

I'm not sure it would be fine to remove white space for mixed elements.

Eric





More information about the jdom-interest mailing list