W3C home > Mailing lists > Public > w3c-dist-auth@w3.org > January to March 2002

Re: space

From: Erik Seaberg <erk@flyingcroc.com>
Date: 03 Mar 2002 11:45:52 -0800
To: w3c-dist-auth@w3c.org
Message-ID: <86664dtoy7.fsf@unx51.staff.flyingcroc.net>
Julian Reschke <julian.reschke@gmx.de> writes:

> Just for the record: you can't have any control characters except
> TAB, CR and LF in an XML string (and preservation of the type of
> line break is not guaranteed).

Preservation is forbidden, since parsers are required to replace
unencoded CRLF or CR in an XML document (or other external parsed
entity) with LF.  AFAIK you can use &#xd; to embed a CR in a search
string, and it might be safest to encourage clients to avoid line
breaks in search strings and use &#xd; and/or &#xa; rather than rely
on every XML parser to handle line breaks correctly.
Received on Sunday, 3 March 2002 14:48:33 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:01:25 UTC