reloading grid from xml

I am trying to load a grid using xml afte the grid has been initially created. I currently have the free version and therefore, cannot use the reloadXML method. Is there a way to load the grid using xml? I have other grids where I have to parse the xml and create a JavaScript array and call addRow, but I do not want to do that if I don’t have to.



Just use

grid.clearAll() //delete old data
grid.loadXML(url) //load new data

>>and create a JavaScript array and call addRow
beware that loading data in such way is slower than loading directly from datasource
also grid can use
grid.parse(data,“jsarray”)
to load data directly from javascript array


Using loadXML(xml) produced an error message (see below).



 



Using parse(xml,‘xml’) did not produce the error message.



 



Error Type: LoadXML



Description: Incorrect XML



XML is:



<?xml version="1.0" encoding="UTF-8"?>











1



121



Scheduled Search Test



12



1



100



01/30/2009 08:57











2



121



Scheduled Search Test



12



2



100



01/30/2009 09:57











3



121



Scheduled Search Test



12



3



100



01/30/2009 11:15











4



121



Scheduled Search Test



12



4



100



02/02/2009 07:47









If xml generated by some kind of script , please be sure that
- xml sent to client side with correct content type ( text/xml )
- there is no unnecessary whitespace before <?xml declaration
dhtmlx.com/docs/products/dhtmlxG … rt_comprob