private static string AddDocumentSuffix( string documentName, AtmlFileType atmlDocNo ) { if (!documentName.Contains( "1671" )) documentName = documentName + ".1671." + (int) atmlDocNo; if (!documentName.ToLower().EndsWith( ".xml" )) documentName = documentName + ".xml"; return documentName; }