Hi Skarn, thank you for your reply.
I haven't explained myself properly, the repeating tables look at the list in sharepoint and the user selects one or more items from each repeating table in the six groups in infopath. The list in sharepoint are separate list items. These selections populate a field in InfoPath called 'concat'.
Basically we need one field in the xml form generated by InfoPath to create points on our map (used in a separate application).
Your idea to use the space function sounds like the answer but I'm not certain how to write the statement to get my result to the xml file. I'd hoped to use something like: eval(eval(somethingGroup, 'concat(my:Value,my:Value, my:Value,my:Value,my:Value,my:Value,(",", something(my:Value)))'), "..") something to remove linebreaks etc. - but don't know the proper syntax to use. I think it needs a \n somewhere!
Cheers!