On Thursday 28 August 2003 07:04 am, Dan North wrote:
>
> You can't do xpath stuff with it, but then you don't need to - it loads
> as first-class Ruby objects.
>

If you load a YAML document as a parse tree, you can perform YPath queries 
upon it.

  >> require 'yaml'
  => true
  >> names = YAML::parse( <<EOY )

  names:
  - first: Dan
    last: North
  - first: Sean
    last: O'Dell

  EOY
  => #<YAML::Syck::Node:0x8243078 ... >
  >> names.select!( '/names/*/first' )
  => ["Dan", "Sean"]

Not as full featured as XPath yet, but coming along...

_why