Exemple #1
0
        public static UpgradeSerializerSettings2010 CreateReaderSettings()
        {
            UpgradeSerializerSettings2010 upgradeSerializerSettings = new UpgradeSerializerSettings2010(false);

            upgradeSerializerSettings.ValidateXml = true;
            upgradeSerializerSettings.Normalize   = false;
            upgradeSerializerSettings.XmlSchema   = XmlSchema.Read(Assembly.GetExecutingAssembly().GetManifestResourceStream("AspNetCore.ReportingServices.RdlObjectModel.RdlUpgrade.Rdl2010ObjectModel.ReportDefinition.xsd"), null);
            UpgradeSerializerSettings2010 upgradeSerializerSettings2 = upgradeSerializerSettings;

            upgradeSerializerSettings2.XmlValidationEventHandler = (ValidationEventHandler)Delegate.Combine(upgradeSerializerSettings2.XmlValidationEventHandler, new ValidationEventHandler(upgradeSerializerSettings.ValidationEventHandler));
            upgradeSerializerSettings.IgnoreWhitespace           = false;
            return(upgradeSerializerSettings);
        }
 protected override RdlSerializerSettings CreateWriterSettings()
 {
     return(UpgradeSerializerSettings2010.CreateWriterSettings());
 }