Jump to content
groovyPost Forums

Meme569

Members
  • Posts

    1
  • Joined

  • Last visited

Meme569's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. 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 :)
×
×
  • Create New...