online eml parser

Chad Berkley berkley at nceas.ucsb.edu
Thu Oct 3 07:44:29 PDT 2002


There isn't an absolute minumum but the eml-sample.xml and eml.xml files
are by no means extensive.  It might be nice to have a minimal one.  Are
you voluneering to create one? :)  

What was the filename of the file you tested?  That sounds like a weird
error message that I wouldn't expect.

chad

On Thu, 2002-10-03 at 06:46, Tim Bergsma wrote:
> Very nice!  I was just about to bug you about software configuration for
> validating test documents!
> 
> I tested a CVS/test/ document that begins
> 
> <?xml version="1.0" ?> 
> - <eml:eml packageId="eml.1.1" system="knb"
> xmlns:eml="eml://ecoinformatics.org/eml-2.0.0rc1"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:ds="eml://ecoinformatics.org/dataset-2.0.0rc1"
> xsi:schemaLocation="eml://ecoinformatics.org/eml-2.0.0rc1 eml.xsd">
> - <!-- this document should be valid 
>   --> 
> - <dataset>
>   <title>Sample dataset Description</title> 
> - <creator id="23445" scope="document">
> 
> and got
> 
> Errors Found
> 
>  The following errors were found:
>  Error running xpath expression:
> 
> //access|//attributeList|//constraint|//coverage|//temporalCoverage|//geographicCoverage|//taxonomicCoverage|/dataset|/eml/dataset|//dataSource|//dataTable|//otherEntity|//citation|//address|//conferenceLocation|//party|//originator|//creator|//contact|//publisher|//editor|//recipient|//performer|//institution|//metadataProvider|//associatedParty|//personnel|//physical|//connectionDefinition|//distribution|//researchProject|//project|//relatedProject|//software|//spatialRaster|//spatialReference|//spatialVector|//storedProcedure|//view|//protocol|//additionalMetadata
>  : The processing instruction target matching
>  "[xX][mM][lL]"
>  is not allowed.
> 
> Is there an example of the absolute minimal eml document somewhere?
> 
> Tim.
> 
> Chad Berkley wrote:
> > 
> > Hi,
> > 
> > I started working on the documentation for the eml parser that validates
> > the key/keyRefs and realized it would be nice to have an online version
> > for people to use so I put together a servlet to do it.  You can try it
> > out at http://trestles.nceas.ucsb.edu:8080/emlparser .  Let me know if
> > you find any errors.  I am planning to include a link to a more
> > permanent home for this servlet (probably on ecoinformatics.org) in the
> > documentation.
> > 
> > If you want some files to upload to it, try uploading the test eml files
> > from the cvs module (test/eml.xsd, test/eml-error1.xsd, test/error3.xsd,
> > test/error4.xsd, lib/sample/eml-sample.xsd).
> > 
> > chad
> > --
> > -----------------------
> > Chad Berkley
> > National Center for
> > Ecological Analysis
> > and Synthesis (NCEAS)
> > berkley at nceas.ucsb.edu
> > -----------------------
> > 
> > _______________________________________________
> > eml-dev mailing list
> > eml-dev at ecoinformatics.org
> > http://www.ecoinformatics.org/mailman/listinfo/eml-dev
> 
> -- 
> Tim Bergsma
> LTER Information Manager
> W.K. Kellogg Biological Station
> Michigan State University
> Hickory Corners, MI   49060
> 616/671-2337
> tbergsma at kbs.msu.edu
> http://lter.kbs.msu.edu
-- 
-----------------------
Chad Berkley
National Center for 
Ecological Analysis 
and Synthesis (NCEAS)
berkley at nceas.ucsb.edu
-----------------------




More information about the Eml-dev mailing list