dhtmlx 数据加载3000多条就报错 Error:type LoadXML Description:Incorrect XML  急切求高手!

解决方案 »

  1.   

    你如果看都就加我QQ312399102,不知道你用的是不是dhtmlxgrid,有个问题困扰我一天了。load不了,类型不对。
      

  2.   

    我这边的问题已经解决了,就是设置了一下文本格式,设置为text/xml,
    response.setContentType("text/xml;charset=UTF-8");    //就是加了这句
    out = response.getWriter();
    希望对各位有点帮助!参考了dhtmlxtreegrid Incorrect XML 官方解决方案Incorrect XMLSymptom: “Incorrect XML” message.Reasons:    Incorrect XML structure - it may be caused by incorrectly formed XML tags, or by using some special content (& < > chars) inside the tag values. The simplest way to detect the reason for an XML error is open the url used for XML loading in a separate browser window. It will show the error details and exact position of the problematic code;
        (IE specific) Usage of incorrect content type - if you are using dynamic XML source (generate it by the script), you need to send the data with Content-type:text/xml;
        (FF specific) In case of FF the problem may occur because of any whitespace before <?xml declaraton (the declaration must be the first text in the output).If you are using a dynamic XML source, pay attention to the fact that the output during a stand alone test may not be equal to the output during the usage of the same feed with the component. You can try to use the debug version of dhtmlxcommon to check which urls are used and which xml output was sent during the data loading.