sfeed

Simple RSS and Atom feed parser
git clone https://git.sinitax.com/codemadness/sfeed
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit 8e922657465da745ff7a35ae7b66216de608935c
parent ade689b7c91c338333b367ee5a12e5b6afb3dba1
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri, 22 Nov 2019 18:16:52 +0100

xml.c: upper-case named-entities are invalid in XML

Named entities are case-sensitive and in XML lower-case.

(In HTML some of these are valid. Although &APOS; is invalid there too).

References:
4.6 Predefined entities: https://www.w3.org/TR/xml/#sec-predefined-ent

In the definition of "match": https://www.w3.org/TR/xml/#dt-match
"No case folding is performed."

Diffstat:
Mxml.c | 5-----
1 file changed, 0 insertions(+), 5 deletions(-)

diff --git a/xml.c b/xml.c @@ -255,11 +255,6 @@ namedentitytostr(const char *e, char *buf, size_t bufsiz) { "gt;", '>' }, { "apos;", '\'' }, { "quot;", '"' }, - { "AMP;", '&' }, - { "LT;", '<' }, - { "GT;", '>' }, - { "APOS;", '\'' }, - { "QUOT;", '"' } }; size_t i;