The XMLUtilsPool module provides an abstraction of the underlying XML parser engine. It provides XML-related methods for the Pools
The XMLUtilsPool module provides an abstraction of the underlying XML parser engine. It provides XML-related methods for the Pools
# File lib/opennebula/xml_element.rb, line 406 def initialize(xml=nil) super(xml) end
Executes the given block for each element of the Pool
Block
# File lib/opennebula/xml_element.rb, line 412 def each_element(block) if NOKOGIRI @xml.xpath( "#{@element_name}").each {|pelem| block.call self.factory(pelem) } else @xml.elements.each( "#{@element_name}") {|pelem| block.call self.factory(pelem) } end end