public static Dictionary<string, string> Validate_DSDAgainstMasterDSD(SDMXSchemaType schemaType, string dsdFileNameWPath, string devinfodsdFileNameWPath) { Dictionary<string, string> RetVal; BaseValidateUtility BaseValidateUtility; RetVal = new Dictionary<string, string>(); BaseValidateUtility = null; try { BaseValidateUtility = new DSDValidateUtility(); RetVal = BaseValidateUtility.ValidateDSDAgainstDevInfoDSD(dsdFileNameWPath, devinfodsdFileNameWPath); if (RetVal.Keys.Count == 0) { RetVal.Add(DSDValidationStatus.Valid.ToString(), string.Empty); } } catch (Exception ex) { RetVal = new Dictionary<string, string>(); throw ex; } finally { } return RetVal; }
public static bool Validate_DSDFile(SDMXSchemaType schemaType, string dsdFileNameWPath) { bool Retval; Dictionary<string, string> dictStatus; BaseValidateUtility BaseValidateUtility; string ValidationStatus; dictStatus = new Dictionary<string, string>(); BaseValidateUtility = null; Retval = true; ValidationStatus = string.Empty; try { BaseValidateUtility = new DSDValidateUtility(); dictStatus = BaseValidateUtility.ValidateDSD(dsdFileNameWPath); foreach (string key in dictStatus.Keys) { ValidationStatus = key; } if ((ValidationStatus == DSDValidationStatus.Valid.ToString()) || (dictStatus.Keys.Count == 0)) { Retval = true; } else { Retval = false; } } catch (Exception ex) { Retval = false; throw ex; } finally { } return Retval; }