powered by
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
eml_validate(eml, encoding = "UTF-8", schema = NULL)
Whether the document is valid (logical)
file path, xml_document,
optional encoding for files, default UTF-8.
path to schema
# \donttest{ f <- system.file("extdata", "example.xml", package = "emld") ## validate file directly from disk: eml_validate(f) ## validate an eml object: eml <- read_eml(f) eml_validate(eml) # }
Run the code above in your browser using DataLab