Combine xml_find_first and xml_text to extract elements.

xml_extract(x, xpath)

Arguments

x

A document, node, or node set.

xpath

A string containing a xpath expression.

Value

A character vector, the same length as x.