def to_child_hash
      hash = {}
      children { |child| hash[child.name] = child.value }
      return hash
    end
def to_child_hash
      hash = {}
      children { |child| hash[child.name] = child.value }
      return hash
    end
Returns a new Hash where the children's names as keys and their values as the key's value.
 Example:

   child1 "toto"
   child2 2

 would give

   { "child1" => "toto", "child2" => 2 }