From: David Sainte-claire Date: 2009-12-01T04:21:19+09:00 Subject: Re: Odd puts behaviour with REXML >> Where data is the body of an HTTP GET request to a ReST-ish web service >> (I can't post the endpoint of the web service since it's an internal >> server) >> >> > First, you need to get your internal service fixed so it returns > properly > XML encoded URLs. You are not currently getting XML back from the > service so > your stuck with garbage at the moment. If you get really stuck you're > going > to need to find and replace those ampersands. > > >> URL that has & between all the query parameters >> >> > You don't have to - any XML parser will make the change for you because > it > understands the & encodings and will return you the proper string > with > nice pretty ampersands :) Please try using the proper XML string prior > to > complaining that it's not what you want. > > John Hey John! Thanks! You saved me so much time! I wasn't exactly complaining. I just didn't fully understand the implications of having ampersands in XML document. Now that I know, I can tell the guys who wrote the service that they need to clean it up! I'll try to keep my questions to a minimum, or at least the really obviously NEWB ones... :) Thanks again -- Posted via http://www.ruby-forum.com/.