1. Home
  2. Functions
  3. Web
  4. FILTERXML

FILTERXML function

Reads values from XML using an XPath. It is turned off for safety, so this returns #BLOCKED!.

Syntax

=FILTERXML(xml, xpath)

Arguments

ArgumentRequiredDescription
xmlRequiredThe XML text
xpathRequiredThe XPath expression

How to use FILTERXML

FILTERXML takes 2 required arguments. Type =FILTERXML( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=FILTERXML("<a>1</a>", "//a")Result #BLOCKED!

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.