From: Chris Gehlker Date: 2006-07-31T22:35:49+09:00 Subject: Re: humanized Xml tree navigation On Jul 31, 2006, at 6:16 AM, chiaro scuro wrote: > Does anybody know of a library that allows to go through an xml > tree as if > it were made of normal objects? > > I have seen e4x on rubyforge, but it doesn't seem to work. > simplexml returns > hashes rather than employing dynamic method calls > > What I need to do is to be able to traverse an xml document as in: > > * people.each_person {...} > * people.person[2].name > * people.person.name #takes the first person > * people.person.size > > etc.. > > Any suggestion? > Look here: or here: -- And those who were seen dancing were thought to be insane by those who could not hear the music. -Friedrich Wilhelm Nietzsche, philosopher (1844-1900)