write XML config file