private XmlReaderSettings GetSettings(bool prohibitDtd) { return new XmlReaderSettings { #pragma warning disable 0618 ProhibitDtd = prohibitDtd, #pragma warning restore 0618 XmlResolver = new XmlUrlResolver() }; }