[jdom-interest] Re: Build problem + getText bug ?

Christophe D. Laprun chris.laprun at nist.gov
Wed Sep 6 12:03:55 PDT 2000


"Christophe D. Laprun" wrote:

> The bug on getText is that for the document below, getText on a user
> element doesn't return null but several blank lines...
> <?xml version="1.0"?>
> <!DOCTYPE log SYSTEM "../../../dtd/commlog.dtd">
> 
> <log wer="63.6">
> <user stime="962315351.690000" etime="962315351.690000" wer="160.0">
>    <ref>****** ** BARCE[LONA] /THROAT_CLEAR/ BARCELONA_SPAIN from ******
> ** DENVER_COLORADO </ref>
>    <hyp>BOSTON TO BOSTON      OR             CHEYENNE        from DENVER
> TO ROME            </hyp>
>    <sco>I      I  S           S              S                    I
> I  S               </sco>
> </user>
> ...
> 
> </log>
> 
> Can someone confirm or infirm that this is a bug ?

Hi again,

I think the problem is the indentation of the sub-elements. I didn't
realize that preserving whitespaces would actually consider indentation
as content... :( Sorry about this.

Chris 

-- 
Christophe Laprun    [Ingenieur ISIMA, France / Guest researcher @NIST]
web: http://www.nist.gov/speech/staff/laprunch.htm
email: chris.laprun at nist.gov
phone: (301) 975 3191             fax: (301) 670 0939
--
The universe seems neither benign nor hostile, merely indifferent -
Sagan



More information about the jdom-interest mailing list