xpathSelect nodes with names equal to or containing some string

Syntax

  1. Inside a specific node:

    {path-to-parent}/name()='search string']

  2. Anywhere in the document:

    //*[name()='search string']

Parameters

functionreturn value
local-name()the node's name without prefix

Remarks

local-name() result does not include prefix (lookup name() XPATH function for it)

Related Examples

Search for nodes that has name that contains Light