Im using the answer to this question to convert an array of XML to a single XML output:
Output array of XML to plain XML
Im using the simpler solution of the two there (Marked as the answer)
It all works for me, however at the start of the output I get:
string(109960) "
Can anyone shed any light on this?