public static void ShowHiearachy(XmlSchemaSet schemaSet) { UblSchemaStatsTool tool = new UblSchemaStatsTool(); using (var file = File.CreateText("../../hierarchy.txt")) { tool.ShowHierarchy(schemaSet, file);// Console.Out); } }