Skip to contents

Built on morie_xml_sax. Each element becomes list(tag =, attrs =, children = list(...), text =).

Usage

morie_fetch_xml(txt)

Arguments

txt

XML text.

Value

The root element as a nested list.

Examples

r <- morie_fetch_xml("<a x=\"1\"><b>hi</b></a>")
r$children[[1]]$text
#> [1] "hi"