R/fetch_native.R
morie_fetch_xml.Rd
Built on morie_xml_sax. Each element becomes list(tag =, attrs =, children = list(...), text =).
morie_xml_sax
list(tag =, attrs =, children = list(...), text =)
morie_fetch_xml(txt)
XML text.
The root element as a nested list.
r <- morie_fetch_xml("<a x=\"1\"><b>hi</b></a>") r$children[[1]]$text #> [1] "hi"