# library(tm)
#
# custom.xml <- system.file("texts", "custom.xml", package = "tm")
# print(readLines(custom.xml), quote = FALSE)
#
# mySource <- function(x){
# XMLSource(x, function(tree) XML::xmlChildren(XML::xmlRoot(tree)), myXMLReader)
# }
#
#
# myXMLReader <- readXML(spec = list(author = list("node", "/document/writer"),
# content = list("node", "/document/description"),
# datetimestamp = list("function",
# function(x) as.POSIXlt(Sys.time(),
# tz = "GMT")),
# description = list("attribute", "/document/@short"),
# heading = list("node", "/document/caption"),
# id = list("function", function(x) tempfile()),
# origin = list("unevaluated", "My private bibliography"),
# type = list("node", "/document/type")),
# doc = PlainTextDocument())
#
# corpus <- VCorpus(mySource(custom.xml))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.