> > I fully agree that removing Node::Set in favor or an Array would make
> > the API more powerful.
> > Currently if I want to sort some nodes I have to put them in some other
> > data structure. Ie:
> >
> > array = []
> > node.find( 'Child1/Child2' ).each { |e| array << e }
> > array.sort{ |a,b| a.meth <=> b.meth }
> >
> > IMO, it is so much nicer to say:
> >
> > node.find( 'Child1/Child2' ).sort{ |a,b| a.meth <=> b.meth }
Nothing says both can't be done... Ross is right, however, in that
Node::Set is important and shouldn't be nixed, even though most of the
folk out there won't use it once an array interface pops up. Ease of
use and REXML compatibility should be a focus, however, and eye'ing
their API and shimmying libxml into REXML would be a better use of
effort and better way of picking up users/"speeding up ruby." -sc
--
Sean Chittenden
_______________________________________________
libxml-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/libxml-devel