
# Read .raw file
txt <- readLines("dl-record.xml")

# Expand some HTML shorthand
ttxt <- gsub("<c>", '<span class="code">',
             gsub("</c>", '</span>', txt))

# Write .Rhtml file (for 'knitr' to process)
writeLines(ttxt, "dl-record.Rhtml")
