RE: [xml-dev] XML: why there is no escape (was Re: [xml-dev] What to escape when serializing XML)

From
Michael Kay <>
To
'Rick Jelliffe' <>,
Date
2007-01-03T23:55:31
ID
<020c01c72f92$a72e2b60$6401a8c0@turtle>
Thread
RE: [xml-dev] XML: why there is no escape (was Re: [xml-dev] What to escape when serializing XML)
> But a question like "How do we escape a non-printing 
> character" should have only one answer in XML: "You cannot 
> escape non-printing characters (in the sense of adding some 
> prefix that makes them OK);

I don't agree. Escaping doesn't mean "adding a prefix", it means "switching
to a different encoding convention", or "breaking away from the constraints
imposed by the current rules". I find the usage "< is escaped as &lt;"
perfectly natural (once the strangeness of the transitive verb wears off).
But naturalness, of course, is a matter of opinion.

Michael Kay
http://www.saxonica.com/