https://github.com/cran/XML
Raw File
Tip revision: 7c44787d022ce63fc21b058c61d11590cd125781 authored by Duncan Temple Lang on 03 May 2017, 09:28:58 UTC
version 3.98-1.7
Tip revision: 7c44787
libxml2.9.R
library(XML)
f <- system.file("exampleData", "gnumeric.xml", package = "XML")
startElement = function(x, ...) cat(x, "\n")
xmlEventParse(file(f), handlers = list(startElement = startElement))

if(FALSE) {
 con = file(f, "r")
 g = function(...) { browser(); cat("here\n"); readLines(con, 1) }
 xmlEventParse(g, handlers = list(startElement = startElement))
 close(con)
}


back to top