library(XML) url <- "http://iobis.marine.rutgers.edu/digir2/DiGIR.php" doc <- "
1.0.0 20030421T170441.431Z 127.0.0.1 http://localhost/digir/DiGIR.php inventory
true
" u = paste(url, paste("doc", doc, sep = "="), sep = "?") r = xmlTreeParse(u) # Alternatively, library(RCurl) txt = getForm(url, doc = doc) r = xmlTreeParse(txt, asText = TRUE) ####### r = xmlTreeParse(u, useInternal = TRUE) science.names = xpathSApply(r,"//x:record", xmlValue, namespaces = "x")