Project

General

Profile

« Previous | Next » 

Revision 1471

Added by Jing Tao almost 22 years ago

Add eml parser checking here.

View differences:

src/edu/ucsb/nceas/metacat/MetaCatServlet.java
65 65
import javax.servlet.http.HttpUtils;
66 66
import javax.servlet.ServletOutputStream;
67 67

  
68
import org.ecoinformatics.eml.EMLParser;
69

  
68 70
import org.xml.sax.SAXException;
69 71

  
70 72
/**
......
1385 1387
          {
1386 1388
             // set eml2 base validation parser
1387 1389
            String rule = DocumentImpl.EML2;
1390
            // using emlparser to check id validation
1391
            EMLParser parser = new EMLParser(doctext[0]);
1388 1392
            documentWrapper = new DocumentImplWrapper(rule, true);
1389 1393
          }
1390 1394
          else

Also available in: Unified diff