# Autoloading from XML

| Tree has unlimmited level count. Each new level loaded from asp script.

    <div id="treeboxbox_tree" style="width:200;height:200"></div>
    <script>
    	tree=new dhtmlXTreeObject("treeboxbox_tree","100%","100%",0);
    			tree.setImagePath("../imgs/");
    			//link tree to asp script
    			tree.setXMLAutoLoading("xml.php");

    			//load first level of tree
    			tree.loadXML("xml.asp?id=0");
    </script>