private static XmlReader Create(Stream stream, XmlSchemaSet schemaSet) { XmlReaderSettings settings = new XmlReaderSettings { Schemas = schemaSet, ValidationType = ValidationType.Schema }; XmlFilteredReader reader = new XmlFilteredReader(stream); return XmlReader.Create(reader, settings); }
private static XmlReader Create(Stream stream, XmlSchemaSet schemaSet) { XmlReaderSettings settings = new XmlReaderSettings { Schemas = schemaSet, ValidationType = ValidationType.Schema }; XmlFilteredReader reader = new XmlFilteredReader(stream); return(XmlReader.Create(reader, settings)); }