public static UpgradeSerializerSettings2008 CreateReaderSettings() { UpgradeSerializerSettings2008 upgradeSerializerSettings = new UpgradeSerializerSettings2008(false); upgradeSerializerSettings.ValidateXml = true; upgradeSerializerSettings.Normalize = false; upgradeSerializerSettings.XmlSchema = XmlSchema.Read(Assembly.GetExecutingAssembly().GetManifestResourceStream("AspNetCore.ReportingServices.RdlObjectModel.RdlUpgrade.Rdl2008ObjectModel.ReportDefinition.xsd"), null); UpgradeSerializerSettings2008 upgradeSerializerSettings2 = upgradeSerializerSettings; upgradeSerializerSettings2.XmlValidationEventHandler = (ValidationEventHandler)Delegate.Combine(upgradeSerializerSettings2.XmlValidationEventHandler, new ValidationEventHandler(upgradeSerializerSettings.ValidationEventHandler)); upgradeSerializerSettings.IgnoreWhitespace = false; return(upgradeSerializerSettings); }
protected override RdlSerializerSettings CreateWriterSettings() { return(UpgradeSerializerSettings2008.CreateWriterSettings()); }