save configuration into xml document