xmltv: simplify XML parsers and fix it

Authored by mauroc on Mar 12 2019, 5:32 PM.

Description

xmltv: simplify XML parsers and fix it

There was a bug here that was causing problems with tags that
were both start and end elements, e. g. :
<icon .... />

Simplify the logic used to parse the several XML fields,
in order to make the code simpler to read and check if the
end tag matches the start tag for each xml hierarchical
parser.

While here, add warnings when a new tag that can't be
parsed is found.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>

Details

Committed
maurocMar 12 2019, 7:02 PM
Parents
R466:400783c1db63: xmltv: better handle file replace
Branches
Unknown
Tags
Unknown