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