def pull_text_until_end
      texts = []
      loop do
        res = pull
        break unless res.text?
        texts << res[0]
      end
      texts.join
    end
def pull_text_until_end
      texts = []
      loop do
        res = pull
        break unless res.text?
        texts << res[0]
      end
      texts.join
    end
Pull all text nodes until the next +end_element+ event.  Return
 the concatenation of text nodes.