Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Hérick on Oct 16, 2008 08:41
open dhtmlx forum
IE error CDATA in usertag

Hello,

I was looking for some way to put html code inside the usertag in XML. I'm found the CDATA tag that make this. The problem is the tree works in Firefox but in IE I got these errors:
Error type: LoadXML
Description: Incorrect XML

Error type: Data Structure
Description: XML reffers to not existing parent

An so, the tree doesn't work in the IE. Any sugestion of how can I resolve this?
Answer posted by Support on Oct 16, 2008 09:18
The CDATA must work equally in both IE and FF
The error above occurs when xml can't be parsed correctly 
In case of ie it may be 
 - incorrect content type of document ( must be text/xml ) 
 - incorrect syntax of XML

Just load the same XML document directly in browser ( IE ) - it will show detailed error description.
Answer posted by Herick on Oct 16, 2008 10:18

The XML document is OK... and the problem only occurs in the IE. Firefox and Chrome works fine. If you want I can put the XML in here to test.

Thank's again!

Answer posted by Support on Oct 17, 2008 03:38
>>If you want I can put the XML in here to test.
Yes please, attach it to the post, or send directly to support@dhtmlx.com

>>and the problem only occurs in the IE
The only IE critical requirement - correct header, but it does matter only if data generated by dynamic script. 
Answer posted by Herick on Oct 17, 2008 05:41
The xml document is attached in the post.

Attachments (1)
tree3.xml6.40 Kb
Answer posted by Support on Oct 17, 2008 06:49
Issue can't be reconstructed locally. The same XML works correctly - please check attached sample. 
If in your case XML generated dynamically - please be sure that it server with correct context-type.
Attachments (1)