[fpc-devel] xml line endings

Michael Van Canneyt michael at freepascal.org
Sun Jun 4 18:33:24 CEST 2006

On Sun, 4 Jun 2006, Vincent Snijders wrote:
> > "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 CARRIAGE RETURN (#xD) and
> > LINE FEED (#xA)."
> > 
> > "To simplify the tasks of applications, the XML processor MUST behave as
> > if it normalized all line breaks in external parsed entities (including
> > the document entity) on input, before parsing, by translating both the
> > two-character sequence #xD #xA and any #xD that is not followed by #xA to
> > a single #xA character."
> > 
> > which I read as allowing any line ending, and it is the reader's
> > responsibility to normalize the line ending.
> OK. Thanks, for looking that up.
> So that means that external files may have all common line endings, but after
> parsing it should #A.
> Then I have no problem with the patch.
> Thanks for the clarification.

Hmmm. Should have read these posts first prior to answering.

I'm not sure that the reader does the transformation, though.


More information about the fpc-devel mailing list