class Nokogiri::XML::NodeSet

def children

the NodeSet
Returns a new NodeSet containing all the children of all the nodes in
##
def children
  node_set = NodeSet.new(document)
  each do |node|
    node.children.each { |n| node_set.push(n) }
  end
  node_set
end