Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by swats on Mar 05, 2008 04:14
open dhtmlx forum
Error Loading XML in dhtmlxgrid

I m loading the data from a jsp instead of an XML file , using the below steps

mygrid.setXMLAutoLoading("abc/xyz/grid.jsp");//to load additional data from server
mygrid.init();
mygrid.loadXML("abc/xyz/grid.jsp?id=0");

It does not load the data. javascript error comes up saying Error Type :Load XML , Descirption:Incorrect XML.
please give the solution for this asap
Answer posted by Support on Mar 05, 2008 08:17
The most common issue of problem

a) structure of XML invalid | data contains not escaped special chars ( & < > )
b) you output XML with incorrect content type, must be text/xml ( IE specific )
c) you output XML with some whitespaces before <?xml tag ( FF specific )

You can try to include attached file instead of original dhtmlxcommon.js - it will show data as it was retrieved by component.
Attachments (1)