I would like the ability for my application to save the layout and contents of the layouts when the user clicks save in my application. I would like the application to save them when the user clicks save. I would also like the user to have the ability to move to a different machine and run the application and load the file they saved. And when loaded, their layouts would all appear with the contents of those layouts.

How can i do this? And what would be the easiest and most proper way to do this? Right now, i am using DOM and just saving everything to a xml file. However, i just feel like there must be a different and easier way to do this. Can someone please enlighten me?

Thanks in advance, any comments and help is greatly appreciated!