From: eddieroger Date: 2006-12-22T15:20:09+09:00 Subject: Re: Creating New Objects from REXML::Elements Have you solved this? A fancy workaround, perhaps? Short of actually making strings equivalent to the pieces, I am running out of ideas, except the inefficiency of that kills me. I guess I'll give that a shot and post an update if I get it to work. Tom Pollard wrote: > On Dec 21, 2006, at 1:40 AM, eddieroger wrote: > > [...] when I try to push my new objects into an array, > > the class identifies itself as an REXML::Element instead of a Movie. > > [...] > > irb tells me this: > > irb(main):025:0> movies.class > > => Array > > irb(main):026:0> movies[1].class > > => REXML::Element > > I've encountered precisely this same problem! I use REXML to pull > values out of an XML document and into an object; but, instead of my > objects, I end up with an Array of REXML::Element's. :-( > > TomP