metacat parser allows eml with missing content
Incomplete packages are allowed by the EML parser in metacat and at knb
packages missing these nodes are allowed:
An example in metacat is knb-lter-sbc.13.3. Morpho1.6rc1 chokes on these files,
so I checked the schema, and found that morpho was right. The example file was
most likely created with morpho1.4. Personally, I'd prefer you didnt fix this,
since it will make some of our existing packages invalid.
Updated by Saurabh Garg about 18 years ago
Here is the link to the document that Margaret is talking about:
There IS a difference in behaviour of eml parser of metacat and morpho.
Metacat's eml parser checks if the given eml document is valid.
But the Morpho eml parser checks if the given eml document is valid AND if it
has any empty required tags. The second requirement is imposed by Morpho to
avoid users from not entering required info.
This is what I have noticed. Though I might be wrong in my observation. Can
other developers confirm this please.
Updated by ben leinfelder about 12 years ago
I tried inserting this document as is: it was fine because it validates against the 2.0.1 schema.
I tries modifying it by commenting out these nodes (all failed):
So it appears that Metacat is enforcing the schema check.