[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>
> Can someone confirm or infirm that this is a bug ?
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.
Christophe Laprun [Ingenieur ISIMA, France / Guest researcher @NIST]
email: chris.laprun at nist.gov
phone: (301) 975 3191 fax: (301) 670 0939
The universe seems neither benign nor hostile, merely indifferent -
More information about the jdom-interest