From: Carl Bourne Date: 2007-12-12T08:59:28+09:00 Subject: Recursing XML data using REXML Hi, I would like to process an XML file using REXML and recurse down through some sub elements, e.g. the "group" and "cond" elements in the following XML: Test Rule This is a test rule 2 However, I need to produce output that maintains the hierarchy so it can be displayed as a nested list such as:-

Rule Name - Test Rule

Rule Description - Test Rule

I can't seem to find any examples of doing this, would somebody be so kind as to provide me with an example of how I could do this? Regards, Carl -- Posted via http://www.ruby-forum.com/.