Re: Definition of whitespace for the TrimTextNodes parameter in C14N 2.0

On 4/26/11 9:47 PM, "edsimon@xmlsec.com" <edsimon@xmlsec.com> wrote:
>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.

That's why they were explicit about it. If it's not one of those original
characters, then XML doesn't treat it as whitespace even if the character
set happens to do that. So functions like isspace() in C/C++ just aren't
appropriate for XML whitespace determination.

-- Scott

Received on Wednesday, 27 April 2011 02:08:49 UTC