in reply to XML cut and paste

You should be able to manipulate the hash XML::Simple creates from your data, then write the modified verion back out using its XMLout method. Have you tried that and is that where you hit the limitation? If so, it might be helpful to see that code.