From: Philipp Date: 2007-10-21T02:45:01+09:00 Subject: libxml iterate xml tree Hello Everyone, i dumped my whole saturday on a small xml problem :-) i have a xml document e.g now i want to get all door_handle from each door ? i tried to iterate it with running_config_xml = XML::Document.file(@running_config_file) car = running_config_xml.root car.each{|door| door.each{|door_handle| puts door_handle['color'] } } fist it looks working but every second door_handle had no color .. i probably iterate it wrong.. is there a trick to do this ?? thanks ahead Philipp