How to load XML string to a grid inside of .ajax call?

I would like to know how to replace my one-line comment in the code-fragment below. In variable $(result) I have the XML and I would like to assign it to a grid.

	$.ajax({
		type: "POST",
		async: false,
		url: transactionUrl,
		dataType: "xml",
		success: function(result){
			//load the $result into grid...
		}
	});

Thanks

datatype should be text.

[code] $.ajax({
url : “grid.xml”,
dataType: “text”,
success : function(msg) {

			mygrid.parse(msg);
	}
});[/code]

Thanks it works, however when I execute:

mygrid.parse(msg);
console.log(mygrid.getRowsNum());

I’m receiving 0.

Here:

docs.dhtmlx.com/api__dhtmlxgrid_parse.html

it is stated, that “.parse()” is synchronous…

please ignore my last comment