You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
270 B
11 lines
270 B
library(xml2)
|
|
|
|
doc <- read_xml("http://www.npr.org/rss/rss.php?id=1001")
|
|
|
|
str(doc)
|
|
|
|
xml_view(doc, add_filter=TRUE)
|
|
xml2::xml_find_all(doc, './/dc:creator', ns=xml2::xml_ns(doc))
|
|
|
|
xml_text(xml2::xml_find_all(doc, './/link[contains(., "soccer")]', ns=xml2::xml_ns(doc)))
|
|
|
|
|