Forum: Rails Engines Rails 1.2

0f7716186bac5a8a2dc8007b70928c06?d=identicon&s=25 Luke Ivers (technodolt)
on 2007-01-10 22:21
Ok, I have no clue where to post this, so if I'm in the wrong forum,
just tell me, and I'll take a hike.

That being said:
I was looking at the rubyonrails.org weblog site, and was reading of the
updates to Active Support.

One that caught my attention was the Hash.from_xml function... as I was
talking it over with another programmer, I got to wondering, how would
it deal with something like:

<listofnames>
  <name>Bob</name>
  <name>Jim</name>
  <name>Frank</name>
</listofnames>

The structure they showed seemed to imply that a hash would be created
using the tag name as the key, and the information contained in the tag
as the value.  So if there are three tags named 'name', does you just
get {:listofnames => {:name => "Frank"}}?
This topic is locked and can not be replied to.