scheme

Why does an invalid file successfully pass validation (C#)?

Good day to all! I ran into a problem that I can't properly connect the validation of the xml file via the xsd schema. The pr ... or", out type)) { if (type == XmlSeverityType.Error) throw new Exception(e.Message); } }