public void v120()
{
XmlSchemaSet ss = new XmlSchemaSet();
ss.XmlResolver = new XmlUrlResolver();
XmlSchema Schema1 = ss.Add(null, Path.Combine(TestData._Root, "105897.xsd"));
XmlSchema Schema2 = ss.Add(null, Path.Combine(TestData._Root, "105897_a.xsd"));
CError.Compare(ss.Count, 3, "AddCount");
CError.Compare(ss.IsCompiled, false, "AddIsCompiled");
ss.Reprocess(Schema1);
CError.Compare(ss.Count, 3, "ReprocessCount1");
ss.Reprocess(Schema2);
CError.Compare(ss.IsCompiled, false, "ReprocessIsCompiled");
CError.Compare(ss.Count, 3, "ReprocessCount2");
ss.Compile();
CError.Compare(ss.Count, 3, "Count mismatch!");
CError.Compare(ss.IsCompiled, true, "IsCompiled");
XmlReaderSettings settings = new XmlReaderSettings();
settings.ValidationType = ValidationType.Schema;
settings.ValidationFlags |= XmlSchemaValidationFlags.ReportValidationWarnings |
XmlSchemaValidationFlags.ProcessSchemaLocation |
XmlSchemaValidationFlags.ProcessInlineSchema;
settings.Schemas = new XmlSchemaSet();
settings.Schemas.Add(ss);
using (XmlReader vr = XmlReader.Create(Path.Combine(TestData._Root, "105897.xml"), settings))
{
while (vr.Read()) ;
}
return;
}