WorksheetFunction.FilterXML method (Excel)

Gets specific data from the returned XML, typically from a WebService function call.

Syntax

expression.FilterXML (Arg1, Arg2)

expression A variable that represents a object.

Parameters

Name Required/Optional Data type Description
Arg1 Required String Valid XML string.
Arg2 Required String XPath query string.

Remarks

The XPath parameter is limited to 1024 characters.

The FilterXML function returns results that are parsed via the user specified data locale.

Return value

Variant

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.