OtherRCode/references.R

library(XML)

# call fixPages() first.

getReferences =
function(doc)
{
   if(is.character(doc)) {
       doc = fixPages(htmlParse(doc, replaceEntities = TRUE))
   }
browser()   
   nodes = getNodeSet(doc, "//p[contains(lower-case(.), 'publication')]/following-sibling::p")
   txt = sapply(nodes, xmlValue)
}
dsidavis/CVRead documentation built on May 15, 2019, 4:19 p.m.