From: Tom Pollard Date: 2007-01-04T06:41:43+09:00 Subject: Re: Ruby classes and objects from XML On Jan 3, 2007, at 9:21 AM, James Edward Gray II wrote: > On Jan 3, 2007, at 3:57 AM, Imobach Gonz�lez Sosa wrote: > >> In summary, I have and XML file (argh!) and I want to convert it >> "automagically" into Ruby classes ("struct"-like classes will >> suffice) >> and objects, without having to write a "parser". >> >> Does exist any library/module that could do that job? > > Have a look at: > > http://xml-simple.rubyforge.org/ XmlSimple looks like a quick way to get a usable data structure from a piece of XML, but it's just a hash, not objects. The ROXML project sounds like it comes closest to doing what the OP was looking for, http://roxml.rubyforge.org/ Unfortunately, I haven't used it myself yet, so I can't speak to its robustness. Does anyone else know anything more about ROXML? It strikes me as a great idea. TomP