Do you think this method should be public? It is currently used only internally to build the xml from the hash of params.