From: Frank Reiff Date: 2007-12-08T05:22:27+09:00 Subject: Re: REXML: parsing a string with unescaped ampersand entitie > I think I might be on to something there.. Ok, it was in fact precisely that. When I do a : cgi.params.to_s I get the correctly formatted XML message, but when there is an & in the message cgi.params.to_s this produces an erratic output. This is of course because: The method params() returns a hash of all parameters in the request as name/value-list pairs, where the value-list is an Array of one or more values. The CGI object itself also behaves as a hash of parameter names to values, but only returns a single value (as a String) for each parameter name. The output is therefore a fluke that's solely based on the fact that there is only one parameter. Now my FINAL question to all the Ruby gurus: * How do I get the POST-ed message body without any clever splitting into key/value pairs!? -- Posted via http://www.ruby-forum.com/.