[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: humanized Xml tree navigation

Chris Gehlker

7/31/2006 1:36:00 PM


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:
<http://code.whytheluckystiff.net/hp...

or here:
<http://cvs.m17n.org/~akr/...
--
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)