Categories | Question details Back To List | ||
dhtmlxtree XML reffers to not existing parent Hi I have a problem whe loadin xml with tree.loadXML("/bin/listini/treeLG.php?azione=modelli&lev=1&marca=1"); this is the returned xml <?xml version="1.0" encoding="iso-8859-1"?> <tree id="0"> <item text="Item0" child="0" id="TLM_01_01_150_" im0="folder.gif" im1="folder.gif" im2="folder.gif"> <userdata name="url">/bin/listini/treeLG.php?azione=versioni&codice=TLM_01_01_150_</userdata> </item> <item text="Item1" child="1" id="TLM_01_01_150_C" im0="folder.gif" im1="folder.gif" im2="folder.gif"> <userdata name="url">/bin/listini/treeLG.php?azione=versioni&codice=TLM_01_01_150_C</userdata> </item> <item text="Item2" child="2" id="TLM_01_01_198_" im0="folder.gif" im1="folder.gif" im2="folder.gif"> <userdata name="url">/bin/listini/treeLG.php?azione=versioni&codice=TLM_01_01_198_</userdata> </item> <item text="Item3" child="3" id="TLM_01_01_199_" im0="folder.gif" im1="folder.gif" im2="folder.gif"> <userdata name="url">/bin/listini/treeLG.php?azione=versioni&codice=TLM_01_01_199_</userdata> </item> <item text="Item4" child="4" id="TLM_01_01_199_L" im0="folder.gif" im1="folder.gif" im2="folder.gif"> <userdata name="url">/bin/listini/treeLG.php?azione=versioni&codice=TLM_01_01_199_L</userdata> </item> <item text="Item5" child="5" id="TLM_01_01_135_2" im0="folder.gif" im1="folder.gif" im2="folder.gif"> <userdata name="url">/bin/listini/treeLG.php?azione=versioni&codice=TLM_01_01_135_2</userdata> </item> <item text="Item6" child="6" id="TLM_01_01_194_1" im0="folder.gif" im1="folder.gif" im2="folder.gif"> <userdata name="url">/bin/listini/treeLG.php?azione=versioni&codice=TLM_01_01_194_1</userdata> </item> <item text="Item7" child="7" id="TLM_01_01_186_1.006" im0="folder.gif" im1="folder.gif" im2="folder.gif"> <userdata name="url">/bin/listini/treeLG.php?azione=versioni&codice=TLM_01_01_186_1.006</userdata> </item> <item text="Item8" child="8" id="TLM_01_01_119_" im0="folder.gif" im1="folder.gif" im2="folder.gif"> <userdata name="url">/bin/listini/treeLG.php?azione=versioni&codice=TLM_01_01_119_</userdata> </item> <item text="Item9" child="9" id="TLM_01_01_189_2" im0="folder.gif" im1="folder.gif" im2="folder.gif"> <userdata name="url">/bin/listini/treeLG.php?azione=versioni&codice=TLM_01_01_189_2</userdata> </item> <item text="Item10" child="10" id="TLM_01_01_169_" im0="folder.gif" im1="folder.gif" im2="folder.gif"> <userdata name="url">/bin/listini/treeLG.php?azione=versioni&codice=TLM_01_01_169_</userdata> </item> <item text="Item11" child="11" id="TLM_01_01_169_9.006" im0="folder.gif" im1="folder.gif" im2="folder.gif"> <userdata name="url">/bin/listini/treeLG.php?azione=versioni&codice=TLM_01_01_169_9.006</userdata> </item> <item text="Item12" child="12" id="TLM_01_01_188_6" im0="folder.gif" im1="folder.gif" im2="folder.gif"> <userdata name="url">/bin/listini/treeLG.php?azione=versioni&codice=TLM_01_01_188_6</userdata> </item> <item text="Item13" child="13" id="TLM_01_01_300_" im0="folder.gif" im1="folder.gif" im2="folder.gif"> <userdata name="url">/bin/listini/treeLG.php?azione=versioni&codice=TLM_01_01_300_</userdata> </item> <item text="Item14" child="14" id="TLM_01_01_189_" im0="folder.gif" im1="folder.gif" im2="folder.gif"> <userdata name="url">/bin/listini/treeLG.php?azione=versioni&codice=TLM_01_01_189_</userdata> </item> <item text="Item15" child="15" id="TLM_01_01_187_5.001" im0="folder.gif" im1="folder.gif" im2="folder.gif"> <userdata name="url">/bin/listini/treeLG.php?azione=versioni&codice=TLM_01_01_187_5.001</userdata> </item> <item text="Item16" child="16" id="TLM_01_01_179_1" im0="folder.gif" im1="folder.gif" im2="folder.gif"> <userdata name="url">/bin/listini/treeLG.php?azione=versioni&codice=TLM_01_01_179_1</userdata> </item> </tree> if this xml is loaded as string work fine what's the problem Sorry for my bad english Thank Alberto Answer posted by Alex (support) on Jan 13, 2010 06:46 Hello Please check that you have set correct content type: header("Content-type: text/xml"); Also please check the article http://dhtmlx.com/dhxdocs/doku.php?id=others:troubleshooting_common_errors#incorrect_xml |