All pastes #24275 Raw Edit

Miscellany

public text v1 · immutable
#24275 ·published 2005-09-30 02:31 UTC
rendered paste body
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);
	}
}