XML operation in Ruby