From: Christian Neukirchen Date: 2006-08-01T04:54:57+09:00 Subject: Re: humanized Xml tree navigation Tim Bray writes: > On Jul 31, 2006, at 6:16 AM, chiaro scuro wrote: > >> 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 > > Consider > > > foo > f�� > > > That's legal XML. Ruby n00b question: can you work around problems > like "vocab-item" and "first.form" in Ruby? -Tim Just make the API more flexible: document["vocab-item"].bla["second.form"] -- Christian Neukirchen http://chneukirchen.org