generate an xml file from multiple nodes

73 Views Asked by At

on content server, I'm running this content script (groovy):

List<CSNode> var1 = docman.getFolder(129335).getChildren()
log.error("start")
for(CSNode x : var1){
sendFile(admin.exportXml(x).content)
}

I would like it to create as many xml as there are folders in the folder with id = 129335, but it creates only one xml. I would like to modify it to create a unique xml file, with inside the xml corresponding to the various folders. I suspect that the sendFile statement executed on the server could only be one.

0

There are 0 best solutions below