#' Validate a XML against the PDFDriver XSD
#'
#' @import xml2
#' @import utils
#'
#' @param xml The XML data read
#'
#' @return A boolean value indicating whether XML is validated
#' @export
validateXSD <- function(xml) {
temp <- tempfile()
download.file("http://grise.upm.es/dataframe.xsd", temp)
schema <- read_xml(temp)
xml_validate(xml, schema)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.