def get_matroska_specs(webm_only=False):
 specs = {}
 with resource_stream(__name__, 'specs/matroska.xml') as resource:
  xmldoc = minidom.parse(resource)
  for element in xmldoc.getElementsByTagName('element'):
   if ((not webm_only) or (element.hasAttribute('webm') and (element.getAttribute('webm') == '1'))):
    specs[int(element.getAttribute('id'), 16)] = (SPEC_TYPES[element.getAttribute('type')], element.getAttribute('name'), int(element.getAttribute('level')))
 return specs

def get_matroska_specs ( webm_only = False ) : specs = { } with resource_stream ( __name__ , 'specs/matroska.xml' ) as resource : xmldoc = minidom . parse ( resource ) for element in xmldoc . getElementsByTagName ( 'element' ) : if ( ( not webm_only ) or ( element . hasAttribute ( 'webm' ) and ( element . getAttribute ( 'webm' ) == '1' ) ) ) : specs [ int ( element . getAttribute ( 'id' ) , 16 ) ] = ( SPEC_TYPES [ element . getAttribute ( 'type' ) ] , element . getAttribute ( 'name' ) , int ( element . getAttribute ( 'level' ) ) ) return specs
get the matroska specs .