I agree about following the XML specification on this. That said, what is defined as whitespace may vary from character set to character set. Unicode, for example, defines whitespace characters [1] that are not considered whitespace in the XML spec...and that makes me curious given that XML would tend to need to define whitespace in terms of specific characters.

[1] http://en.wikipedia.org/wiki/Whitespace_character#Unicode

Ed
-------- Original Message --------
Subject: Re: Definition of whitespace for the TrimTextNodes parameter
in C14N 2.0
From: "Cantor, Scott E." <cantor.2@osu.edu>
Date: Tue, April 26, 2011 7:43 pm
To: Pratik Datta <pratik.datta@oracle.com>,
"public-xmlsec@w3.org" <public-xmlsec@w3.org>

On 4/26/11 7:35 PM, "Pratik Datta" <pratik.datta@oracle.com> wrote:
>I have been trying to prototype C14N 2.0 and Java has an "isWhitespace"
>method.
>
>http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Character.html#
>isWhitespace(int)
>
>But that isWhitespace has a different definition, from XML's whitespace.

Yes, XML's has a fairly specific definition that won't match most others,
but this is an XML spec...

-- Scott