FILTERXML Function
Return data from XML text with an XPath query. xml is the XML text and xpath the XPath expression; several matching nodes are returned as a vertical array, and numeric content is returned as numbers. Invalid XML, an invalid XPath or an XPath without a match returns #VALUE!.
Syntax
FILTERXML(xml, xpath)
Category: Web. Minimum arguments: 2. Maximum arguments: 2.
Available for supported offline calculation.
Examples
=FILTERXML("<r><v>2</v><v>3</v></r>","//v")
The formula returns the array {2;3}, the values of both v elements.
Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.