タグ

ブックマーク / cobravsmongoose.rubyforge.org (1)

  • Cobra vs Mongoose

    About Cobra vs Mongoose translates XML to and from Ruby Hash objects, following the BadgerFish convention. The current release is version 0.0.2. Usage Converting XML to a Ruby Hash require 'cobravsmongoose' xml = '<alice><bob>charlie</bob><bob>david</bob></alice>' CobraVsMongoose.xml_to_hash(xml) # => { "alice" => { "bob" => [{ "$" => "charlie" }, { "$" => "david" }] } } Converting a Ruby Hash to

    t-wada
    t-wada 2008/01/18
    "Cobra vs Mongoose translates XML to and from Ruby Hash objects, following the BadgerFish convention."
  • 1