From: Fritz Trapper Date: 2009-12-31T21:27:46+09:00 Subject: Re: Where to find a description of yaml for ruby? Phillip Gawlowski wrote: > But one thing is annoying with YAML: Significant whitespace. \t or a > proper space have different meanings, as does the amount of space. Thats really a bad issue. After reading docs on YAML, I decided to use it for plane data only, no structs or trees, as I wanted to. > Ain't it grant that > require "yaml" > var = Object.to_yaml # or dump, if you want to write a file > another_var = YAML.load var > > makes it so very easy to use? And it can be read (not necessarily > written) by humans, too. Yes, that's very elegant and useful f端r simple configuration files. > Try reading and writing XML in just one three lines! ;) Reading complex data structures expressed in well formated XML is possible. Reading the same in YAML is at least quite difficult. -- Posted via http://www.ruby-forum.com/.