eml_validate processes an EML document using the XSD schema for the appropriate version of EML and determines if the document is schema-valid as defined by the XSD specification
Examples
# \donttest{
f <- system.file("extdata", "example.xml", package = "emld")
## validate file directly from disk:
eml_validate(f)
#> [1] TRUE
#> attr(,"errors")
#> character(0)
## validate an eml object:
eml <- read_eml(f)
eml_validate(eml)
#> [1] TRUE
#> attr(,"errors")
#> character(0)
# }