Esempio n. 1
0
        protected DocumentSet GetDocumentSet()
        {
            var readerSettings = new XmlReaderSettings
            {
                NameTable        = _nameTable,
                CloseInput       = true,
                IgnoreWhitespace = StripWhitespace,
                ProhibitDtd      = false,
                ValidationType   = GetValidationType(),
                Schemas          = _schemaSet,
                XmlResolver      = _xmlResolver,
                ValidationFlags  = GetValidationFlags()
            };

            var documentSet = new DocumentSet(_xmlResolver, readerSettings, false);

            documentSet.IncludeWellKnownDTDs();
            return(documentSet);
        }