Re: getText() underspecified

Aleksander Slominski <[email protected]>
Newsgroups gmane.text.xml.xmlpull.devel
Message-ID <[email protected]>
hi,

i have updated description of getText() to reference nextToken()
for detailed description of what can be returned.

Elliotte Rusty Harold wrote:

> Never mind. I just discovered that this info is documented under
> nextToken(), not the most obvious place, but it is there. However, I
> do note that getText() does not always return null for tags, even
> though I did not set
> http://xmlpull.org/v1/doc/features.html#xml-roundtrip to true. This
> is possibly a bug. I'll have to investigate further.

this _is_ bug in current XPP3 1.1.1 that it currently only supports
ROUNDTRIP enabled (it can not be turned off).

this is related ot change to API that was made to make it more
consistent with XML Infoset and SAX: events reported by nextToken()
are now required to be end-of-line normalized (as defined in XML1.0)
_unless_ ROUNDTRIP is on, see description of this change here:
http://www.xmlpull.org/v1/doc/changes.html#XMLPULL_1_1_1

i hope to fix it by next release of XPP3.

thanks for your comments,

alek
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.