https://github.com/cran/XML
Raw File
Tip revision: 779ec583a6e5aee032f279ad3995697af8bb25d9 authored by ORPHANED on 01 August 2018, 07:57:22 UTC
version 3.98-1.13
Tip revision: 779ec58
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