Open tree node by script

I am trying to get my tree to open by a specific ID, so for instance a function like

tree.openItem(1); or tree.openItem(‘1’);

where 1 = ID of the node. I am not getting any response at all, I have also tried:


But that doesnt work, I get an error saying, “XMLload is null or not an object”.

Are there any more detailed documentation than what is online, so I can get to grips with all this?

With thanks John

My code:


Your code is correct, but the XML loading is async. process, which mean you need to wait while data loaded.
The moment of data loading can be catched through onXLE event or by using second parameter of loadXML