Google

# File jabber4r/protocol.rb, line 404

      def Iq.from_element(session, element)

        iq = Iq.new(session)

        iq.from = Jabber::JID.new(element.attr_from) if element.attr_from

        iq.to = Jabber::JID.new(element.attr_to) if element.attr_to

        iq.type = element.attr_type

        iq.id = element.attr_id

        iq.session=session


        iq.data=element.query

        return iq

      end