new EML parser

chad berkley berkley at nceas.ucsb.edu
Wed Sep 25 16:24:01 PDT 2002


Hi,

I just got finished writing a parser to enable the validation of keyrefs
the way we want to do it.  You can now validate key/keyrefs using this
parser.  To run it, go into the lib directory and execute the
runEMLParser file with the file you want to validate as an argument. 
Note that the key/keyref relationships are defined in the lib/config.xml
file.  If you want to see how it works try executing one or more of the
following commands:

runEMLParser ../test/eml.xml        (this should validate correctly)
runEMLParser ../test/eml-error1.xml (this should not validate)
runEMLParser ../test/eml-error2.xml (this should not validate)
runEMLParser ../test/eml-error3.xml (this should not validate)
runEMLParser ../test/eml-error4.xml (this should not validate)

You can mess with the config.xml file and/or the instance files to see
how the keyrefs work. Let me know if you find any bugs.  I'm the only
one who has tested this.  Note that you have to change into the lib
directory to run the script or the relative paths get messed up.  If you
want to run it elsewhere, just look at the script to see how to execute
it.  If someone wants to create a windows batch file to do the same
thing as runEMLParser, that would be great.  I'd do it but I don't have
a windows machine at home to test it on.

chad




More information about the Eml-dev mailing list