JP2 (JPEG 2000 Part 1) validator and properties extractor. Jpylyzer was specifically created to check that a JP2 file really conforms to the format's specifications. Additionally jpylyzer is able to extract technical characteristics.
2/ it's surprising that the XML output doesn't have any namespace defined (that would be handy to validate the output and to mangle it with XSLT...)
The modification seems straightforward
replace
root=ET.Element('jpylyzer')
by something like
root=ET.Element('jpylyzer', {'xmlns': 'http://openplanetsfoundation.org/ns/jpylyzer'})
I suppose the main problem is to decide which URI to choose (openplanets or kb ???)
Also submitted by Thomas Ledoux (e/mail)±
2/ it's surprising that the XML output doesn't have any namespace defined (that would be handy to validate the output and to mangle it with XSLT...) The modification seems straightforward replace root=ET.Element('jpylyzer') by something like root=ET.Element('jpylyzer', {'xmlns': 'http://openplanetsfoundation.org/ns/jpylyzer'}) I suppose the main problem is to decide which URI to choose (openplanets or kb ???)