Dynamic XML loading

I am trying to integrate dhtmlxGrid with oracle Apex. Successfully i am able to do via loading XML file.

This is JS i am using

function doInitGrid(){

mygrid = new dhtmlXGridObject(‘mygrid_container’);

mygrid.setImagePath("/i/trane/dhtmlxGrid/codebase/imgs/");

mygrid.setHeader(“Model,Qty,Price”);

mygrid.setInitWidths("*,150,150");

mygrid.setColAlign(“left,right,right”);

mygrid.setSkin(“light”);

mygrid.init();

mygrid.loadXML(“test.xml”);

}



Now i would like to do it same with dynamic XML.(becaz same page can be accessed by more than person with different parameter so load xml file will not work)



Can any one help me how can i call dynamic XML (via PL/SQL procedure)

The loadXML command may point not to the static XML file but to any kind of dynamic script , which will generate data as XML on the fly, based on incoming parameters.
mygrid.loadXML(“some/dynamic/script/url?with=parameters”)