DebugTool: better support of XML in CLI mode