/// <summary> /// Process the xml schemas. /// </summary> /// <param name="doc">The documentation compiler xml document.</param> private void ProcessSchemas(XmlDocument doc) { XmlNodeList schemaNodes = doc.SelectNodes("//doc:XmlSchema", this.namespaceManager); XmlSchemaCompiler schemaCompiler = new XmlSchemaCompiler(this.outputDir, this.versionNumber); schemaCompiler.CompileSchemas(schemaNodes); }
private static int Main(string[] args) { CommandLine commandLine; if (!CommandLine.TryParseArguments(args, out commandLine)) { CommandLine.ShowHelp(); return(1); } Directory.CreateDirectory(commandLine.OutputFolder); XmlSchemaCompiler xsc = new XmlSchemaCompiler(commandLine.OutputFolder); xsc.CompileSchemas(commandLine.Files); return(0); }