I have a YAML document which I believe is valid (at least it would be
representable in XML):

purchase_order:
  date: 10/12/2010
  vendor: 12345
  item:
    product: Tomatoes
    quantity: 5
  item:
    product: Eggs
    quantity: 2

The problem is that using YAML.read on this produces a Hash in which
only one item occurs because (naturally) it has to be unique.

How can one traverse the nodes in a YAML document like this?

-- 
Posted via http://www.ruby-forum.com/.