dhtmlxTree not autoloading from xml

I’m getting the “Incorrect XML” and then the “XML reffers to not existing parent” error messages when loading an xml in my program. I’m getting the same error message in the sample documentation code (so I don’t think it’s my xml). And my xml opens in IE just fine with no errors.



My xml:

<?xml version="1.0" encoding="iso-8859-1" ?>





true



…(lots of items)





My code:







I’m coding on a machine that doesn’t have internet access, using IE7, and does not have flash or activeX.



The initial error (“Incorrect XML”) is occuring in the dhtmlxcommon.js file:

dtmlSMLLoaderObject.prototype.getXMLTopNode = function(tagName, oldObj) { …};



A comment in this part of the js file says “fall back to MS.XMLDOM”



Any suggestions would be really helpful! Thanks, Kerri

Please be sure that you are loading html page by http like URL ( some/some.html not the c:/some/some.html )
IE has known issues with loading XML, when page loaded directly from file system. ( loader code solves such problem automatically for utf-encoded data , but it doesn’t work for other encodings )


Then why doesn’t the sample code work? I’m getting the same error running the downloaded documentation and trying to view the sample auto load from xml.  I also forgot to mention that my OS is Vista Business.

Please try to use debug version of dhtmlxcommon.js instead of original one
Can be taken from next post - dhtmlx.com/docs/products/kb/inde … tmlxcommon
It will show exact reason of error

Please beware that some samples require server side support ( PHP ) and require php capable web server to work correctly.