[mythtv-commits] Ticket #13293: Parse config.xml as an XML document
MythTV
noreply at mythtv.org
Wed Jun 13 09:28:37 UTC 2018
#13293: Parse config.xml as an XML document
----------------------------------+--------------------------------
Reporter: Nick Morrott | Owner: (none)
Type: Bug Report - General | Status: infoneeded_new
Priority: minor | Milestone: unknown
Component: Bindings - Perl | Version: Master Head
Severity: low | Resolution:
Keywords: perl xml config | Ticket locked: 0
----------------------------------+--------------------------------
Comment (by ijc):
FWIW (and my Perl _is_ a bit rusty) your code looks find to me. It should
be possible to do the `$mysql_conf{'db_host'} =
$config->{'Database'}->{'Host'};` from within the preceeding loop which
does the checks if you make each element of the list a tuple of XML name
and local name, don't know if that will be any clearer though.
WRT which library to use looking in `apt rdepends` for both `libxml-
libxml-perl` and `libxml-simple-perl` on my Debian system I see that
`libxml-libxml-perl` is in the dependency chain for XMLTV (and a tonne of
Perl libraries) while `libxml-simple-perl` has fewer rdepends and doesn't
include anything which I immediately associated with being related to
MythTV in some way. That's rather unscientific but given I would expect
some sizeable fraction of myth systems to have xmltv installed perhaps
that's enough to lean that way?
--
Ticket URL: <https://code.mythtv.org/trac/ticket/13293#comment:2>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list