performance improvements - disable "prettyXML( )" for loglevel=Off or Normal