I'm working with the xml2 package to parse an xml document, and I don't
understand how subsetting / slicing of xml_nodesets works. I'd expect
xml_find_all to only return children of the nodes I selected with [ or
[[ but it returns all nodes found in the whole document. I did not find
any documentation on the [ and [[ operators for xml_nodeset. Below is a
small example and the sessionInfo.
thanks in advance, Tobias Fellinger
# load package
# test document as text
test_chr <- "
# parse test document
test_doc <- read_xml(test_chr)