public XmlSerializer()
        {
            Configuration = new XmlSerializerConfiguration();
            var xmlAttributeInterpreter = new XmlAttributeInterpreter();

            reportReader = new ReportReader(new ContentReaderCollection(xmlAttributeInterpreter, Configuration.OnDeserialize));
            reportWriter = new ReportWriter(new ContentWriterCollection(xmlAttributeInterpreter));
        }
        public StrictXmlSerializer()
        {
            var xmlAttributeInterpreter = new XmlAttributeInterpreter();

            var onDeserializeConfiguration = new OnDeserializeConfiguration();

            onDeserializeConfiguration.OnUnexpectedElement   += OnUnexpectedElement;
            onDeserializeConfiguration.OnUnexpectedAttribute += OnUnexpectedAttribute;

            reportReader = new ReportReader(new ContentReaderCollection(xmlAttributeInterpreter, onDeserializeConfiguration));
            reportWriter = new ReportWriter(new ContentWriterCollection(xmlAttributeInterpreter));
        }