If you have single record in input which is supposed to be a list, & if you dont provide a schema or doc type name while using documentToXMLString service, the output will be a single document
If you have single record in input, and if you provide schema or doc type name, the output of will be a document list with array[0]
You have to consider the second way of coding in your case…
HTH
Senthil
#Adapters-and-E-Standards#Integration-Server-and-ESB#webMethods