+ static void ValidateXsd2 (string [] args)
+ {
+ XmlReaderSettings s = new XmlReaderSettings ();
+ s.ValidationType = ValidationType.Schema;
+ s.Schemas.Add (null, args [1]);
+ for (int i = 2; i < args.Length; i++) {
+ XmlReader xr = XmlReader.Create (args [i], s);
+ while (!xr.EOF)
+ xr.Read ();
+ xr.Close ();
+ }
+ }
+