Is there a way to apply XPath\'s starts-with function to a node\'s name instead of its value? I want to select the FOObar and FOObaz n
starts-with
FOObar
FOObaz
Use the name() or local-name() functions to refer to nodes by name:
name()
local-name()
//*[starts-with(local-name(), 'FOO')]