Use DtdProcessing in fresh XML settings initializers

Proprietary

Replace bound ProhibitDtd assignments in new XmlReaderSettings object initializers with equivalent Prohibit/Parse DtdProcessing values. Preserve the boolean expression, initializer ordering, other properties, allocation and surrounding uses. Require exact BCL construction and an already typed boolean value; leave borrowed settings, dynamic/custom conversions and conditional snapshots unchanged.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net3_0.UseDtdProcessingForXmlSettingsInitializers
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net3_0.UseDtdProcessingForXmlSettingsInitializers

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.