Sql query returns a streamed output as Resultset iterator object from the Database component. i want to convert this to xml in dataweave. But don't know how to refer the incoming object, If it's a map i can access it simply by using .operator like payload.student
Tried using payload.next() but it gives an error. Also tried the following, %var input1 payload as :iterator but still wont' work