Class Skates::XpathHelper
In: lib/skates/xpath_helper.rb
Parent: Object

Custom XPath functions for stanza-routing.

Methods

namespace  

Public Instance methods

Match nodes of the given name with the given namespace URI.

[Source]

    # File lib/skates/xpath_helper.rb, line 7
 7:     def namespace(set, name, nsuri)
 8:       set.find_all do |n|
 9:         n.name == name && n.namespaces.values.include?(nsuri)
10:       end
11:     end

[Validate]