Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by jf on Mar 06, 2009 10:55
open dhtmlx forum
Load XMl Error in IE7 and FF 3.06

I am getting the following error

Error Type: LoadXML
Decription : Incorrect XML

When attempting to load reports into dhtmlGrid with recordsets in the 100000

Using an AJAX call to a PHP that calls a stored procedure and puts the results in XML format.

However it seems to be an issue with the number of record sets and loading into the Grid

Any help would be greatly appreciated.

Thanks in advance
Answer posted by Support on Mar 09, 2009 04:43
The count itself must not cause an incorrect XML error ( but for such big count of rows it has sense to use dyn. mode - http://dhtmlx.com/docs/products/dhtmlxGrid/samples/loading_big_datasets/50000.html?un=1236599787000 )
Most probably issue caused by some data in XML , be sure that all data provided in same encoding as used for XML ( UTF by default ) and data doesn't contain <>& characters ( or they closed in CDATA sections ) 

If error still occurs for you - please provide a snippet of data for which error occurs ( you can send it directly to support@dhtmlx.com ) 
Answer posted by jf on Mar 09, 2009 06:44
Is there other characters besides < > & that would cause LoadXML error
Answer posted by dhxSupport on Mar 09, 2009 07:19

Data's between <cell></cell> shouldn't contain any special characters. If you need use special characters in the data you have to contain it into CDATA:

<cell><![CDATA[  
  <input type='button' value='any' />
  ]]></cell>