Meme569 Posted January 26, 2021 Report Share Posted January 26, 2021 def one = text1.EmployeeDataReplicationConfirmation.EmployeeDataReplicationConfirmation.collect { it.personId.text() } def two = text2.queryCompoundEmployeeResponse.CompoundEmployee.collect { it.person.person_id.text() } def intersect = one.intersect(two) println((one - intersect) + (two - intersect)) In the text 1 and text2 fields are different ids. This command will give me IDs that are the same in both. But he gives them to me like this:[6107, 10140, 11774] But i need it in XML.. like .. <Person> <User> <userid>6107</userid> </User> <User> <userid>10140</userid> </User> <User> <userid>11774</userid> </User> how can i do it ? Thanks :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.