From: Aleksi Date: 2005-04-12T19:19:43+09:00 Subject: Re: groovy-like xml selection Aleksi wrote: > Robert Klemme wrote: > >> "Luke Graham" schrieb im Newsbeitrag >> >>> Hi list, >>> >>> Ive taken a quick look at groovy for the first time, and saw an > Effectively you can write code like given in example > at http://www.cs.helsinki.fi/u/kaniemel/SimpleXML/doc/ > > xml = SimpleXML.load(xml_string) # or File > puts xml.movie[0].plot # => "\n Whether you..." > > I have currently no plans to go forward with it, but I've been pondering > if there should be generic API for accessing and modifying and > underlying implementations over whatevery DOM traversal API is present > be it REXML or any of the 15 libraries out there :). I just wanted to note there has already been Jim Weirich's Builder around for half a year. With it one can build XML easily, in Groovy style I reckon. http://onestepback.org/index.cgi/Tech/Ruby/BuilderObjects.rdoc - Aleksi