[mythtv-commits] Ticket #11812: Mythutil --pidprinter --xml output is NOT valid XML

MythTV noreply at mythtv.org
Mon Sep 2 21:26:28 UTC 2013


#11812: Mythutil --pidprinter --xml output is NOT valid XML
--------------------------------------+-------------------------
     Reporter:  exegptxg5q@…          |      Owner:
         Type:  Bug Report - General  |     Status:  new
     Priority:  minor                 |  Milestone:  0.27
    Component:  MythTV - General      |    Version:  Master Head
     Severity:  medium                |   Keywords:
Ticket locked:  0                     |
--------------------------------------+-------------------------
 The output from mythutil --pidprinter --xml is not well formed for several
 reasons:
 1) it does not have the leading <?xml> processing instruction.
 2) It does not have a proper master node - if you dump several types of
 PSIP entry it will create each one at the top level, rather than as sub-
 nodes of the parent.
 3) Nodes are not being properly XML escaped, so
 3a) attributes are being created containing un-escaped quotes
 (example:
 <ProgramMapSection pcr_pid="0x31" program_number="1"
     program_info_length="17" stream_count="table_id="0x02" length="124"
 section="0" last_section="0""%8>
 )
 3b) Attributes can contain characters that need to be escaped in XML, such
 as < and &
 (example:
 <Decoded>Audio Stream Descriptor  full_srv(1) sample_rate(48kbps)
 bit_rate(<=384kbps, 46)
       bsid(8) bs_mode(0) channels(<= 6) Dolby(Not indicated)
       mainID(0) </Decoded>

 Note the unescaped "<=384" in the XML.
 )
 4) Junk at the end of the ProgramMapSection tag:
 (example: see above - note the %8> at the end of the tag.).

--
Ticket URL: <http://code.mythtv.org/trac/ticket/11812>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list