From: Robert Klemme Date: 2008-02-21T00:27:51+09:00 Subject: Re: how to parse a soap xmp result of amazon? 2008/2/20, jacques : > hello everybody > > i'm really new to ruby and i have to step in a existing ruby projects. > i want to know what is the best way to access to xml elements. > > how could i retrieve all BrowseNodeId's from the following result? > What would you suggest? > This is a .inspect result of the amazon response. > > i looked at: > http://www.xml.com/pub/a/2005/11/09/rexml-processing-xml-in-ruby.html Also look at http://www.germane-software.com/software/rexml/docs/tutorial.html Note especially XPath. For further documentation on how to build XPath expressions, you can look here: http://www.w3schools.com/xpath/ http://www.zvon.org/xxl/XPathTutorial/General/examples.html Kind regards robert -- use.inject do |as, often| as.you_can - without end