generate xml file for release mode.