On Feb 7, 2006, at 01:07, Manuel Mall wrote:
On Tuesday 07 February 2006 01:11, Andreas L Delmelle wrote:
On Feb 6, 2006, at 08:17, Manuel Mall wrote:
For a starters it is fairly difficult to get a CR out of a XML
parser.
Difficult? It's simply a characters event, just like any other...
From the XML spec:
<quote>
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.
<quote/>
To me this means unless you define an entity <!ENTITY cr "
" >
and
then later reference it as &cr; you never get a CR out of an XML
parser
(even on Windows).
You're right! Makes our job much, much simpler...
Cheers,
Andreas