optimize xml report