I am trying to read xml data from the following link:
https://www.sec.gov/Archives/edgar/data/1026081/000092189520001626/infotable.xml
I am using the rvest package and doing this
library(rvest)
url <- "https://www.sec.gov/Archives/edgar/data/1026081/000092189520001626/infotable.xml"
test <- url %>%
read_xml() %>%
xml_nodes("nameOfIssuer") %>%
xml_text()
But this is not working. "test" is empty. I have also tried xpath. I have also tried other variations such as
test <- url %>%
read_xml() %>%
xml_nodes("infoTable") %>%
xml_text()
I feel like I am missing something super basic. How would I go about scraping specific node information from here.
Thanks in advance!