powered by
Get text from xml node
mclm_xml_text(node, trim = FALSE)
Character vector: The text value of the (elements of the) node, concatenated with spaces in between.
XML node as read with xml2::read_xml().
xml2::read_xml()
If TRUE will trim leading and trailing spaces.
TRUE
test_xml <- ' The example . ' test_xml_parsed <- xml2::read_xml(test_xml) # xml2 output xml2::xml_text(test_xml_parsed) # mclm version mclm_xml_text(test_xml_parsed)
Run the code above in your browser using DataLab