public static XmlReader ReadAsXmlReader(this HttpContent content) { var settings = new XmlReaderSettings() { CloseInput = true, ConformanceLevel = ConformanceLevel.Auto, MaxCharactersInDocument = 0, IgnoreWhitespace = true, IgnoreProcessingInstructions = true, ProhibitDtd = true, }; return ReadAsXmlReader(content, settings); }