You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Philippe QUERREC <pq...@cosmosbay.com> on 2001/02/22 11:54:21 UTC
carriage return text node
Hi,
I wonder in which version of xerces is implemented the normalize() method
(from NodeImpl Class). I didn't find it in the 1.3.0 version.
My problem is to identify a carriage return text node (or discarding it with
the normalize() method, if it does that) :
- node.getNodeValue().equals("\n") doesn't work
I would like to know how to identify the carriage return text node.
Thanks
Philippe Querrec
Re: carriage return text node
Posted by Michael Duffy <du...@yahoo.com>.
Isn't '\n' (ASCII decimal 10) linefeed and '\r' (ASCII
decimal 13) carriage return? UNIX uses the former to
denote the line separator; Mac uses the latter;
Windows uses both.
I think the most portable thing in Java is to use
System.getProperty("line.separator").
--- Philippe QUERREC <pq...@cosmosbay.com> wrote:
> Hi,
> I wonder in which version of xerces is implemented
> the normalize() method
> (from NodeImpl Class). I didn't find it in the 1.3.0
> version.
> My problem is to identify a carriage return text
> node (or discarding it with
> the normalize() method, if it does that) :
>
> - node.getNodeValue().equals("\n") doesn't work
>
> I would like to know how to identify the carriage
> return text node.
>
> Thanks
> Philippe Querrec
>
>
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/