/// <summary>
        /// Loads the domain setting errors.
        /// </summary>
        /// <param name="reader">The reader.</param>
        private void LoadDomainSettingErrorsFromXml(EwsXmlReader reader)
        {
            if (!reader.IsEmptyElement)
            {
                do
                {
                    reader.Read();

                    if ((reader.NodeType == XmlNodeType.Element) && (reader.LocalName == XmlElementNames.DomainSettingError))
                    {
                        DomainSettingError error = new DomainSettingError();
                        error.LoadFromXml(reader);
                        domainSettingErrors.Add(error);
                    }
                }while (!reader.IsEndElement(XmlNamespace.Autodiscover, XmlElementNames.DomainSettingErrors));
            }
        }
        /// <summary>
        /// Loads the domain setting errors.
        /// </summary>
        /// <param name="reader">The reader.</param>
        private void LoadDomainSettingErrorsFromXml(EwsXmlReader reader)
        {
            if (!reader.IsEmptyElement)
            {
                do
                {
                    reader.Read();

                    if ((reader.NodeType == XmlNodeType.Element) && (reader.LocalName == XmlElementNames.DomainSettingError))
                    {
                        DomainSettingError error = new DomainSettingError();
                        error.LoadFromXml(reader);
                        domainSettingErrors.Add(error);
                    }
                }
                while (!reader.IsEndElement(XmlNamespace.Autodiscover, XmlElementNames.DomainSettingErrors));
            }
        }