First: read and save xml configuration files