dhtmlXTreeObject: Safari DataStructure XML reffers to not ex


I am using newtree.loadXML(‘Data.aspx?Type…’) to load the first level of the tree, and newtree.setXMLAutoLoading(“Data.aspx?Type=getSubTree”) to load the child nodes. It is working in IE; however, I am getting “DataStructure XML reffers to not existing parent” error in Safari. The sample data for the parent is

<?xml version="1.0" encoding="utf-16"?>


and the sample data for the child is:

<?xml version="1.0" encoding="utf-16"?>














                Rock / E00211 / R012 / Day 5




Please help.

There is an error in xml structure, the next tag is not closed

must be
<item text=“Daily” id=“mhdr1044505” im0=“folderClosed.gif” im1=“folderOpen.gif” im2=“folderClosed.gif” child=“1” />

I found the problem is inside the aspx code behind file, the Response.ContentType = “application/xml” was missing. After putting the xml header, Safari is working fine.