XPath to select multiple tags
One correct answer is: /a/b/*[self::c or self::d or self::e] Do note that this a/b/*[local-name()=’c’ or local-name()=’d’ or local-name()=’e’] is both too-long and incorrect. This XPath expression will select nodes like: OhMy:c NotWanted:d QuiteDifferent:e