I’m trying to get data from the web into a data frame. It comes as XML, but I cannot convert it as usual. It seem to be in an "S3:list" (?) which I don’t know how to convert into something else.
data_xml = read_xml(url)
Display of Variable in RStudio
View(data_xml)
Unfortunately, all unlist and parse commands don't lead to useful output. Does anyone know how to handle this?
Thanks in advance Dave
XML typically does not translate into a rectangular data frame, think of a tree structure with (possibly) deeply nested branches. Hard to recommend any particular strategy without having access to that particular file, but with a simple structure (ex. cd_catalog.xml) something like this might work:
Created on 2023-09-01 with reprex v2.0.2