XML config writing