Hi everyone!

I've using the next function in order to convert a javascript XML object to string

Code:
function XMLtoString(elem){
	
	var serialized;
	
	try {
		// XMLSerializer exists in current Mozilla browsers
		serializer = new XMLSerializer();
		serialized = serializer.serializeToString(elem);
	} 
	catch (e) {
		// Internet Explorer has a different approach to serializing XML
		serialized = elem.xml;
	}
	
	return serialized;
}
Is there an easier way to perform the above function using ExtJS?
And, also, when making an Ext.Ajax.request the params need to be string? Or can I pass directly a XML DOM object?

Greetings!