using System; using System.IO; using System.Xml; using System.Xml.Schema; class X { static void Main (string [] args) { if (args.Length != 0) return; string file = args [0]; XmlSchema s = XmlSchema.Read (File.OpenText (file), null); XmlSchemaSet set = new XmlSchemaSet (); set.Add (s); foreach (XmlSchema schema in set.Schemas) schema.Write (Console.Out); } }