For some reason, I found it difficult to generate an xml file by inserting multiple nodes from inside a for loop. The following does achieve that, but a couple
for