wait, where did you get the XML from? does this assume that each individual problem was already set up, and that now you create a new container for all of them, so you go back and copy from the individuals, paste them in to the container, and then go back and delete the individual? 
or am I making this way harder than it actually is? if you do have to do all those steps, though, it might be reasonable to enumerate the procedure