Hi All,
I want to map employee id to employeeId. I have done mapping in straight way employee id to employeeId. but I always receives only one id. when multiple employee records are pushed, I receive only one employee id field, remaining employee details comes without id.
How to map properly to get all the employee info with id field.
current mapping is
id ----> employeeId (do I have to add any context or how to map in a right way?)
My Input xml
<Sales> <employee> <id>101</id> <name>XDG</name> <dept>4XR1</dept> </employee> </Sales> <Sales> <employee> <id>102</id> <name>XDG</name> <dept>4XR1</dept> </employee></Sales> <Sales> <employee> <id>103</id> <name>XDG</name> <dept>4XR1</dept> </employee> </Sales>
My expected output xml
<EmployeeRequest> <Employee> <employeeId>101</employeeId> </Employee> </EmployeeRequest> <EmployeeRequest> <Employee> <employeeId>102</employeeId> </Employee> </EmployeeRequest> <EmployeeRequest> <Employee> <employeeId>103</employeeId> </Employee> </EmployeeRequest>