AgGateway.ADAPT.ISOv4Plugin.Models.TaskDataDocument.LoadXmlFile C# (CSharp) Method

LoadXmlFile() private method

private LoadXmlFile ( string taskDataFile ) : bool
taskDataFile string
return bool
        private bool LoadXmlFile(string taskDataFile)
        {
            BaseFolder = Path.GetDirectoryName(taskDataFile);
            try
            {
                _taskDataXmlDocument = new XmlDocument();
                _taskDataXmlDocument.Load(taskDataFile);
            }
            catch (XmlException ex)
            {
                SetError(ex);
                return false;
            }
            catch (IOException ex)
            {
                SetError(ex);
                return false;
            }
            return true;
        }