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>
<Use