I am looking for an efficient solution on extracting all times series behind an xml query. My code is:
library(xml2)
# URL of the data provider
url.iscb <- "http://www.sedlabanki.is/xmltimeseries/"
# The data frame to store all the time series
iscb.rates <- data.frame()
# Dates defining the time range
d.all <- as.Date("1990-01-01")
d.now <- Sys.Date()
# XML
u <- paste0(url.iscb,"Default.aspx?DagsFra=",d.all,"T00%3a00%3a00&DagsTil=",
d.now,"T23%3a59%3a59&GroupID=1&Type=xml")
# Obtaining the data from the web site...
f <- xml2::read_xml(u)
doc <- xml2::as_list(f)
So far, I cannot extract all the time series that are in f. The variable doc seems to store just one time series.