Categories | Question details Back To List | ||
dhtmlXTreeObject: Safari DataStructure XML reffers to not existing parent Hi, 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"?> <tree id="0" radio="1"> <item text="Rock" id="197606.48292" im0="folderClosed.gif" im1="folderOpen.gif" im2="folderClosed.gif" child="1"> <userdata name="type">production</userdata> </item> </tree> and the sample data for the child is: <?xml version="1.0" encoding="utf-16"?> <tree id="197606.48292" radio="1"> <item text="E00211" id="e189418" im0="folderClosed.gif" im1="folderOpen.gif" im2="folderClosed.gif" child="1"> <userdata name="type">e</userdata> <item text="Daily" id="mhdr1044505" im0="folderClosed.gif" im1="folderOpen.gif" im2="folderClosed.gif" child="1"> <item text="Reel Day 5" id="media1044505" im0="film.gif" im1="film.gif" im2="film.gif" child="0"> <userdata name="type">media</userdata> <userdata name="viewed">1</userdata> <userdata name="offset">43179.95703125</userdata> <userdata name="mediaid">1044505</userdata> <userdata name="prodid">197606</userdata> <userdata name="epid">189418</userdata> <userdata name="atyp">dailyreel</userdata> <userdata name="mediafile">rtsp://3.23.187.50/daily/staging/2_1500k.wmv</userdata> <userdata name="name">Rock / E00211 / R012 / Day 5</userdata> </item> </item> </tree> Please help. Answer posted by Support on Aug 15, 2008 09:41 There is an error in xml structure, the next tag is not closed <item text="Daily" id="mhdr1044505" im0="folderClosed.gif" im1="folderOpen.gif" im2="folderClosed.gif" child="1"> must be <item text="Daily" id="mhdr1044505" im0="folderClosed.gif" im1="folderOpen.gif" im2="folderClosed.gif" child="1" /> Answer posted by Wing on Aug 15, 2008 11:26 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. |