Re: non-XML characters (e.g. #1)

> > - Steven’s remark "And assuring those characters don't get through to
> > the output is the grammar author's responsibility” leads to a story in
> > which an attempt to write out a non-XML character in ixml output is
> > an error in the grammar. Possibly, like other cases that have been
> > brought up, it’s what I would call a “run-time error in the grammar” —
> > that is, an error in the grammar that may be caught only for some
> > inputs, and which a processor is not obligated to detect in other
> > cases.
>
> Either way, the user has made an error and surely must be
> told of it.

No problem with that. If the serializer finds a non-XML character being serialized, it can report it, just as with invalid element names.
Steven

Received on Tuesday, 4 January 2022 10:48:24 UTC