[mythtv-commits] Ticket #13293: Parse config.xml as an XML document

MythTV noreply at mythtv.org
Wed Jun 13 03:26:39 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
----------------------------------+--------------------------------
Changes (by Bill Meek):

 * status:  new => infoneeded_new


Comment:

 The attached is a non-Perl user's attempt at parsing
 config.xml properly.

 It would catch the error from the mailing list that
 prompted this ticket.

 If some folks want to kick the tires and report back
 here, I'll clean up the unused lines and commit it.

 * Catches duplicate tags
 * Catches missing tag ends
 * Missing tags
 * Proper comments are ignored
 * References to the mysql.txt names are gone

 I picked XML::Simple, even though there are some
 recommendations against using it. But, there's
 commented out code here that uses XML::LibXML too.
 The big question is if all distributions have either
 of these. I've got both on a recently loaded Ubuntu
 18.04 box. Don't know that I did anything to get
 them.

 cd to wherever the existing MythTV.pm lives. Make a
 safe copy of it and apply the patch with:
 {{{
 sudo patch < /some/path/to/perl-config-parser-v0.patch
 }}}

-- 
Ticket URL: <https://code.mythtv.org/trac/ticket/13293#comment:1>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list