store setting to xml