Feature/default xml options

* Reintroduce default formatting options when rendering xml
* format the result using the format options in render_result method