static void Main(string[] args)
        {
            if (args.Length < 2)
            {
                Console.WriteLine("Usage: ImportXML database-file xml-file {xml-file}");
                return;
            }
            VersionedStorage store = new VersionedStorage();

            store.Open(args[0]);
            XmlServer server = new XmlServer(store, Console.Out);

            for (int i = 1; i < args.Length; i++)
            {
                server.Parse(args[i]);
            }
            store.Close();
            Console.WriteLine("Press any key to exit...");
            Console.ReadLine();
        }
Exemplo n.º 2
0
 static void Main(string[] args)
 {
     if (args.Length < 2) 
     { 
         Console.WriteLine("Usage: ImportXML database-file xml-file {xml-file}");
         return;
     }
     VersionedStorage store = new VersionedStorage();
     store.Open(args[0]);
     XmlServer server = new XmlServer(store, Console.Out);
     for (int i = 1; i < args.Length; i++) 
     { 
         server.Parse(args[i]);
     }
     store.Close();
     Console.WriteLine("Press any key to exit...");
     Console.ReadLine();
 }
 public XmlServer(VersionedStorage store, TextWriter writer)
 {
     this.store  = store;
     this.writer = writer;
 }
Exemplo n.º 4
0
 public XmlServer(VersionedStorage store, TextWriter writer) 
 {
     this.store = store;
     this.writer = writer;
 }