class OpenNebula::XMLPool
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
Public Class Methods
new(xml=nil)
click to toggle source
Calls superclass method
OpenNebula::XMLElement.new
# File lib/opennebula/xml_element.rb, line 406 def initialize(xml=nil) super(xml) end
Public Instance Methods
each_element(block)
click to toggle source
Executes the given block for each element of the Pool
- block
-
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