﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	mlocked
11812	Mythutil --pidprinter --xml output is NOT valid XML	exegptxg5q@…	Karl Egly	"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.).
"	Bug Report - General	closed	minor	0.28	MythTV - DVB	Master Head	medium	fixed			0
