- Added XML file generation to debug build.