def get_text_from_si_or_is(self, elem, r_tag=(U_SSML12 + u'r'), t_tag=(U_SSML12 + u't')):
 accum = []
 for child in elem:
  tag = child.tag
  if (tag == t_tag):
   t = cooked_text(self, child)
   if t:
    accum.append(t)
  elif (tag == r_tag):
   for tnode in child:
    if (tnode.tag == t_tag):
     t = cooked_text(self, tnode)
     if t:
      accum.append(t)
 return u''.join(accum)

def get_text_from_si_or_is ( self , elem , r_tag = ( U_SSML12 + u'r' ) , t_tag = ( U_SSML12 + u't' ) ) : accum = [ ] for child in elem : tag = child . tag if ( tag == t_tag ) : t = cooked_text ( self , child ) if t : accum . append ( t ) elif ( tag == r_tag ) : for tnode in child : if ( tnode . tag == t_tag ) : t = cooked_text ( self , tnode ) if t : accum . append ( t ) return u'' . join ( accum )
returns unescaped unicode .