# File jabber4r/protocol.rb, line 1296 def tag_start(name, attrs) case name when "stream:stream" openstream = ParsedXMLElement.new(name) attrs.each {|key, value| openstream.add_attribute(key, value)} @listener.receive(openstream) @started = true else if @current.nil? @current = ParsedXMLElement.new(name) else @current = @current.add_child(name) end attrs.each {|attr| @current.add_attribute(attr[0], attr[1])} end end