[api] move rendering of configuration xml into a view