From: dabba dabba Date: 2012-01-05T13:08:48+09:00 Subject: need help in parsing xml I have an xml structure like below and would like to store the activity name attribute as key along with complete inputBindings structure with xml tags etc as value in a hash - activityName = Hash.new Following doesn't get anything in value - xml.elements.each("/kp:process/kp:activity"){ |e| @activityName[e.attributes["name"]] = xml.elements("/kp:process/kp:activity[@name=e.attributes["name"]]/kp:inputBindings } 857 161 ErrorSchema ........ 857 161 ErrorSchema ........ -- Posted via http://www.ruby-forum.com/.