System.Xml.Tests.CXmlSchemaValidatorTestCase.CreateSchemaSet C# (CSharp) Method

CreateSchemaSet() protected method

protected CreateSchemaSet ( string targetNamespace, string XsdContent ) : XmlSchemaSet
targetNamespace string
XsdContent string
return System.Xml.Schema.XmlSchemaSet
        protected XmlSchemaSet CreateSchemaSet(string targetNamespace, string XsdContent)
        {
            StringReader s = new StringReader(XsdContent);
            XmlSchemaSet schemas = new XmlSchemaSet();

            schemas.Add(targetNamespace, XmlReader.Create(s));

            return schemas;
        }