def _import_type_text(dest, elem, type=None):
 if (type is None):
  type = elem.attrib['type']
 if _should_skip_elem(elem, type, dest):
  return
 dest[type] = _text(elem)

def _import_type_text ( dest , elem , type = None ) : if ( type is None ) : type = elem . attrib [ 'type' ] if _should_skip_elem ( elem , type , dest ) : return dest [ type ] = _text ( elem )
conditionally import the elements inner text(s) into the dest dict .