use REXML for generating request XML

Avoid unnecessary whitespace in the request XML to hopefully work around
issues with timeouts on large batch operations.