From: Patrick Callahan Date: 2008-01-24T07:35:07+09:00 Subject: Parsing poorly written XML I've found an application which dumps all the registry settings for installed applications into an .xml file for me (you can find it as "myuninstall" via google). I can't figure out the ruby code I need from REXML to do the following: -find a particular "product_name" in the xml file -if found, save off the "uninstall_string" so I can execute it on the commandline and uninstall the app. I'm a newbie to Ruby, and I'm even newer to parsing XML with Ruby, so I'm struggling a bit. It seems there should be a way to navigate within that "item" after I match on the product name, but I can't figure out how. Any guidance would be very VERY appreciated! Here's a snippet of the problem xml: Devicescape DevicescapeDesktop 2.0.5 Devicescape DevicescapeDesktop No Yes C:\Program Files\Devicescape\Devicescape http://www.devicescape.com/ 1/22/2008 4:42:14 PM MsiExec.exe /I{C3BFE4FC-C9F6-494F-B3AB-ABD75556DDC5} No {C3BFE4FC-C9F6-494F-B3AB-ABD75556DDC5} Windows Installer HKEY_LOCAL_MACHINE -- Posted via http://www.ruby-forum.com/.