Description Usage Arguments Details Value Examples
eml_locate_schema returns the location of the XSD schema file for a given EML document, as shipped with the EML R package.
1 | eml_locate_schema(eml, ns = NA)
|
eml |
an xml2::xml_document instance for an EML document |
ns |
the namespace URI for the top (root) element |
The schema location is based on the last path component from the EML namespace (e.g., eml-2.1.1), which corresponds to the directory containing xsd files that ship with the EML package. Schema files are copies of the schemas from the EML versioned releases. If an appropriate schema is not found, the function returns FALSE.
fully qualified path to the XSD schema for the appropriate version of EML
1 2 3 | f <- system.file("examples", "example-eml-2.1.1.xml", package = "EML")
eml <- xml2::read_xml(f)
schema <- eml_locate_schema(eml)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.