# File jabber4r/protocol.rb, line 927 def add_child(tag, attributes={}) child = XMLElement.new(tag, attributes) child.parent = self @elements << child return child end