Custom XML from XML string

I am using custom xml to load grid. I have created custom xml load methods as given in example. I could use url to load data. But i want to use js string(contains XML) to load Custom xml. Is it possible? Pls help me.

add to the start of your _process_custom method

_process_custom:function(xml){ if (!xml.doXPath){ var t = new dtmlXMLLoaderObject(function(){}); t.loadXMLString(xml); xml=t; } ... your custom code ...

after that you will be able to use

grid.parse(data,“custom”)