Esempio n. 1
0
        static void Main(string[] args)
        {
            var generator = new UblGenerator();

            generator.Generate(
                new UblGeneratorOptions()
            {
                XsdBasePath         = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"maindoc\"),
                OutputPath          = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"..\..\UblSharp.SCSN"),
                Namespace           = "UblSharp.SCSN",
                ValidationHandler   = ValidationHandler,
                GenerateCommonFiles = false
            });

            Console.WriteLine("Done.");
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            var generator = new UblGenerator();

            generator.Generate(
                new UblGeneratorOptions()
            {
                XsdBasePath         = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"V1\"),
                OutputPath          = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"..\..\UblSharp.SEeF"),
                Namespace           = "UblSharp.SEeF",
                ValidationHandler   = ValidationHandler,
                GenerateCommonFiles = false,
                //XmlToCsNamespaceMapping =
                //{
                //    { "urn:www.energie-efactuur.nl:profile:invoice:ver2.0", "SEeF" }
                //}
            });

            Console.WriteLine("Done.");
        }