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?

I like the idea, but I'm unaware that it's been done
to that level.

Why don't you start with REXML and put a wrapper on it?
Then publish it for everyone to enjoy.

Or do you find REXML too slow for your use?


Hal