[eml-dev] eml parser

Duane Costa dcosta at lternet.edu
Thu Feb 16 09:36:59 PST 2006


Hi Jim,
 
Sorry for the delayed response: I was on vacation the last three days.
 
I tried running the EML parser on my Windows system using the runEMLParser.bat file that's in the lib sub-directory. Here are the
results I got:
 
C:\MyCVS\eml\lib>runEMLParser.bat C:\tmp\eml\2000lgshttbm.xml
 
C:\MyCVS\eml\lib>REM # echo "usage: runEMLParser <emlfile>"
 
C:\MyCVS\eml\lib>REM # echo "where <emlfile> is the file you want to parse."
 
C:\MyCVS\eml\lib>java -cp
./eml.jar;./configxml.jar;./apache/xercesImpl.jar;./apache/xmlParserAPIs.jar;./apache/xalan.jar;./apache/xml-apis.jar org.ecoinfo
rmatics.eml.EMLParser -q ./config.xml C:\tmp\eml\2000lgshttbm.xml
emlfile: C:\tmp\eml\2000lgshttbm.xml configfile: ./config.xml

C:\tmp\eml\2000lgshttbm.xml has valid ids and references.
 
 
So it looks like the parser does run OK. However, I'm not sure this is really adequate for full validation. I believe the EML Parser
code only checks for valid ids and references; it doesn't do schema validation of the EML. Whereas I think the EML validation web
page does both the schema validation AND checks for valid ids and references. If that's the case, then I would suggest using the web
page and not the runEMLParser script to validate EML documents.
 
Could someone on the eml-dev list please verify whether I am right or wrong in my assumption about the behavior or the runEMLParser
tool? That is, does it only check for valid ids and references, or does it do that in addition to schema-based validation of the
EML?
 
Thanks,
Duane





  _____  

From: Jim Laundre [mailto:jiml at mbl.edu] 
Sent: Monday, February 13, 2006 12:41 PM
To: dcosta at lternet.edu
Subject: eml parser


  Hi Duane,
I figured out some of the errors that caused the metacat harvester errors. Most of them were errors in my code that I used to output
eml from  our excel sheet. So hopefully these will work.
 
I see that the eml download also has an eml validation parser but I have not figured out how to use it.  I would like to use it to
valid an eml file that I created from an excel spreadsheet.  How would one use it in ms windows' command prompt?  I guess I can also
pass the filename to the web address.  This might be the more stable route.
 
Thank you,
 
Jim Laundre
The Ecosystems Center
7 MBL St.
Woods Hole, Ma 02543
Phone: 508 289-7476 
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mercury.nceas.ucsb.edu/ecoinformatics/pipermail/eml-dev/attachments/20060216/ebdb60a0/attachment.htm


More information about the Eml-dev mailing list