Re: [R] using xpath with xml2

2019-11-12 Thread Ben Tupper
Forehead smack! Of course! Thank you, Bill! > On Nov 12, 2019, at 2:50 PM, William Dunlap wrote: > > > xml_ns(daymet) > d1<-> http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0 > > xlink <-> http://www.w3.org/199

Re: [R] using xpath with xml2

2019-11-12 Thread William Dunlap via R-help
> xml_ns(daymet) d1<-> http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0 xlink <-> http://www.w3.org/1999/xlink > daymet %>% xml2::xml_find_all(xpath = "d1:dataset") {xml_nodeset (1)} [1] https://thredds.daac.ornl.gov/thredds/catalog/ornldaac/1328/catalog.xml"; > > # run the follo

[R] using xpath with xml2

2019-11-12 Thread Ben Tupper
Hi, I have mined XML extensively with R before now, but my xpath chops seem to be regressing recently. I know that I can roll up my sleeves and search through the child nodes of the root, but I can't noodle out why using the xpath description returns an empty nodeset. Any suggestions and nudge