From: Marcin Raczkowski Date: 2007-11-23T00:05:31+09:00 Subject: Re: XML to Ruby? Jari Williamsson wrote: > PWR wrote: >> On 22 Nov, 12:39, Jari Williamsson >> wrote: >>> Is there any Ruby package that will read a XML file and build Ruby >>> classes for the tags found (classes that can handle reading, writing, >>> setting attributes, etc), using the object relationships from the XML? >>> Most preferably, get everything from the DTD and build the Ruby classes >>> from there? >>> >>> Best regards, >>> >>> Jari Williamsson >> >> I've used REXML which worked very well. The only drawback is that it >> is not a validating parser. > > How do you get REXML to generate Ruby classes? > > > Best regards, > > Jari Williamsson > > try xml-mapper it builds classes from XML files