ropensci / emld

:package: JSON-LD representation of EML
https://docs.ropensci.org/emld
Other
13 stars 6 forks source link

validation produces spurious errors #46

Closed mbjones closed 4 years ago

mbjones commented 4 years ago

Validating the eml-sample.xml file that ships with EML 2.2.0 produces spurious errors.

> eml_validate("eml-sample.xml", schema = NULL)
[1] FALSE
attr(,"errors")
[1] "parent of any annotation must have id unless annotation contains a references attribute"
Warning message:
In eml_additional_validation(doc, encoding = encoding) :
  Document is invalid. Found the following errors:
 parent of any annotation must have id unless annotation contains a references attribute