From: TAKAHASHI Masayoshi Date: 2002-02-25T02:37:29+09:00 Subject: Re: rdoc/xml questions Hello, David Alan Black wrote: > which I don't think would make for any easier XPath manipulation than: > > > > > --tmp.xml----------------------------------- comment of A comment of B -------------------------------------------- ---parse.rb--------------------------------- require 'rexml/document' doc = REXML::Document.new(File.new("tmp.xml")) puts doc.elements["/class[@name='A']/description"] puts doc.elements["/class[@name='A']/class[@name='B']/description"] -------------------------------------------- Then, % ruby parse.rb comment of A comment of B Is it easy? Regards, TAKAHASHI 'Maki' Masayoshi (yet another XPath newbie)