How to auto open node 1100 , the path '1000-1098-1099-1100'

if I add the “alert (‘1’)”, I can auto open the node 1100,but if I remove the “alert (‘1’)”,I can’t.
why ? please help me , The problem took me quite a long time.

1, html file
2, xml file

for example: html file

test.html
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">

<link rel="STYLESHEET" type="text/css" href="../../codebase/dhtmlxtree.css">
        <div id="treeboxbox_tree" style="width:250px; height:218px;background-color:#f5f5f5;border :1px solid Silver;"></div><br>
    </td>
    <td rowspan="2" style="padding-left:25" valign="top">
    <a href="javascript:void(0)" onclick="setDesign(1);">Set design 1</a><br>
    <a href="javascript:void(0)" onclick="setDesign(2);">Set design 2</a><br>
    <a href="javascript:void(0)" onclick="setDesign(3);">Set design 3</a><br>
    <a href="javascript:void(0)" onclick="setDesign(4);">Set design 4</a><br>
    
    </td>
</tr>
---------------------------------xml file -------------------------------------- <?xml version="1.0" encoding="utf-8"?> 10 0-1000 10 20 0-1000-1098 20 30 0-1000-1098-1099 30 40 0-1000-1098-1099-1100 40 50 0-1000-1098-1099-1100-1120 50 50 0-1000-1098-1099-1100-1121 50 50 0-1000-1098-1099-1100-1122 50

loadXML() method works in asynchronous way. You should wait till all data is loaded:

tree.loadXML("../common/test.xml",function(){ selectTreeItem("1000-1098-1099-1100"); });

If I add a new node, and must choose the node again according to the node of the information to the url iframe。
if i add “alert(‘add node success’)” i can select the node,but if I remove the “alert…”,i can’t
why ?

//path=‘1000-1098-1099-1100’
//new node is 1100
tree.refreshItem(path.split(",")[0]);
//alert(‘add node success’);
tree.openItemsDynamic(path,true);