2.11 End-of-Line Handling
XML parsed entities are often stored in computer files which, for editing
convenience, are organized into lines.
These lines are typically separated by some combination of the characters
such as CR
(#xD
) and LF
(#xA
).
To simplify the tasks of applications, wherever an external parsed entity or
the literal entity value of an internal parsed entity contains either the literal
two-character sequence #xD#xA
or a standalone literal #xD
, an XML processor must pass to the application the single
character #xA
. This behavior can conveniently be produced by
normalizing all line breaks to #xA
on input, before parsing.