Categories | Question details Back To List | ||
dhtmlxGrid and dynamic XML from ColdFusion Hi, I am able to populate my grid fine with an XML file residing on the server. However, when I attempt to populate the grid with the same XML generated by ColdFusion I keep receiving a "Error loading XML file" "Incorrect XML". The XML being generated is the exact same content that is in the static file on the server. Could this be some type of timeout issue with loadXML() not waiting long enough for the XML to be returned? Thanks for any help... Answer posted by dhxSupport on Mar 12, 2009 02:53 The reasons of this problem are: * 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 of 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). |