Project

General

Profile

« Previous | Next » 

Revision 80

Added by Matt Jones about 24 years ago

added catalog loading code

View differences:

GenericXMLValidate.java
31 31
    static int WARNING = 0;
32 32
    static int ERROR=1;
33 33
    static int FATAL_ERROR=2;
34
   
34

  
35
    static String defaultCatalog = "/home/httpd/html/xmltodb/catalog.txt";   
35 36
    
36 37
    Parser parser;
37 38
    ErrorStorer ef;
......
43 44
        try {
44 45
            Catalog myCatalog = new Catalog();
45 46
            myCatalog.loadSystemCatalogs();
47
            myCatalog.parseCatalog(defaultCatalog);
46 48
            cer.setCatalog(myCatalog);
47 49
        }
48 50
        catch (Exception e) {System.out.println("Problem creating Catalog!");}
......
266 268
    }
267 269
              
268 270
              
269
}
271
}

Also available in: Unified diff