Added configuration parameter for adapter to specify if the xml data should be written using compact or pretty.