Added xml read_config function manually