public static string BuildingFromFile(string sampleFilePath) { if (sampleFilePath == null) { return(null); } string building = null; try { building = CsXmlUtilities.ScanXmlForElementValue(sampleFilePath, "Building", 0); } catch (Exception e) { string m = e.Message; string im = e.InnerException?.Message ?? null; } return(building); }
public static string DescriptionFromFile(string sampleFilePath) { if (sampleFilePath == null) { return(null); } string description = null; try { description = CsXmlUtilities.ScanXmlForElementValue(sampleFilePath, "Description", 0); } catch (Exception e) { string m = e.Message; string im = e.InnerException?.Message ?? null; } return(description); }
public static string SampleFileNameFromFile(string classifFilePath) { if (classifFilePath == null) { return(null); } string fileName = null; try { fileName = CsXmlUtilities.ScanXmlForElementValue(classifFilePath, "SampleFile", 0); } catch (Exception e) { string m = e.Message; string im = e.InnerException?.Message ?? null; } return(fileName); }
protected string GetVersionFromFile(string elementName) => CsXmlUtilities.ScanXmlForElementValue(SettingPathAndFile, elementName);