public void EditorSaveXML( string name ) { // build the screen //GUIScreen screen = myObject.BuildScreenXML(); GUIScreen screen = myObject.guiScreen; // create new screen info ScreenInfo si = new ScreenInfo(); si.AddScreen(screen as GUIScreen); // convert to save si.ConvertToGUIScreen(); // create new XML Serializer<ScreenInfo> serializer = new Serializer<ScreenInfo>(); serializer.Save(name + ".xml",si); }