From: "Eder QuiƱones" Date: 2008-02-08T03:58:19+09:00 Subject: Re: XML Parser (SOAP Request) This is what I Have: require 'rexml/document' include REXML def strip_html(txt) txt.gsub(/<\/?[^>]*>/, '') end xml_path = 'soap:Envelope/soap:Body/' xml_path << 'FindMembershipResponse/' xml_path << 'FindMembershipResult/Services/' xml_path << 'Service/Memberships/Membership' doc = Document.new(File.new('c:/soap.xml')) doc.elements.each(xml_path) { |element| xpath = element.to_s.dup xpath.split("<(.*?)>") xpath.each { |line| case line when /