Skip to contents

The schema half is EML::eml_validate() — EML 2.2's XSDs ship with emld, so nothing here touches the network. The rest is the required-element checklist EDI's evaluate applies (see eml_findings()), read off the built document rather than off the record, so what is asserted is what was written.

Usage

check_eml(doc, path = NULL, record = NULL, validate = TRUE)

Arguments

doc

an EML document from build_eml(), or a path to a written .xml (the fallback notes are only available from the document)

path

the written file to validate; defaults to doc when doc is a path

record

the dataset's catalog record, for the question-row exemptions

validate

run EML::eml_validate() (default TRUE)

Value

A tibble: dataset_key, finding, level, detail, exempt, question — the shape check_dataset_catalog() returns.

See also