first prototype capable of saving xml from dialog is done, not tested yet.