System.Xml.Tests.TC_SchemaSet_Misc.CompileSchemaSet C# (CSharp) Méthode

CompileSchemaSet() private méthode

private CompileSchemaSet ( string xsd ) : XmlSchemaSet
xsd string
Résultat System.Xml.Schema.XmlSchemaSet
        private XmlSchemaSet CompileSchemaSet(string xsd)
        {
            XmlSchemaSet schemaSet = new XmlSchemaSet();
            schemaSet.XmlResolver = new XmlUrlResolver();
            schemaSet.Add(XmlSchema.Read(new StringReader(xsd), OnValidationEvent));
            schemaSet.ValidationEventHandler += OnValidationEvent;
            schemaSet.Compile();
            return schemaSet;
        }