From: Dave Howell Date: 2006-08-01T03:04:31+09:00 Subject: Re: humanized Xml tree navigation On Jul 31, 2006, at 6:16, 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? Your sample code looks a lot like RubyfulSoup. Although originally intended for traversing HTML documents, it has an option for non-specific XML as well. > * people.each_person {...} > * people.person[2].name > * people.person.name #takes the first person > * people.person.size RubyfulSoup would (I believe) look something like: people.find_all['person'].each people.person.name people.person.size if the XML were like Fred 150 kg Sally . . . If instead your XML is like . . . Then you'd be looking at people.find_all['person'].each people.person['name'] people.person['size'] I don't remember what it does with XML tags with squiggles and dots.