mclm_xml_text | R Documentation |
Get text from xml node
mclm_xml_text(node, trim = FALSE)
node |
XML node as read with |
trim |
If |
Character vector: The text value of the (elements of the) node, concatenated with spaces in between.
test_xml <- ' <p> <w pos="at">The</w> <w pos="nn">example</w> <punct>.</punct> </p>' test_xml_parsed <- xml2::read_xml(test_xml) # xml2 output xml2::xml_text(test_xml_parsed) # mclm version mclm_xml_text(test_xml_parsed)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.