DHTMLXTree loadXMLString with enableSmartRendering / enableS

I am loading a tree with 7,000 nodes using loadXMLString. It takes 5 minutes or more to load the tree.



I have tried setting enableSmartXMLParsing = true or enableSmartRendering = true but the loading time is exactly the same.



Also, in the samples the syntax is: “tree.enableSmartXMLParsing(true)” but I end up with no data loaded so I used “tree.enableSmartXMLParsing = true”. Is this incorrect?



Can I combine loadXMLString with enableSmartRendering or enableSmartXMLParsing?



Thank you in advance


>> Also, in the samples the syntax is: “tree.enableSmartXMLParsing(true)” but I end up with no data loaded so I used “tree.enableSmartXMLParsing = true”. Is this incorrect?


enableSmartXMLParsing is method. It isn’t property. So, the correct syntax is:


tree.enableSmartXMLParsing(true);


>> Can I combine loadXMLString with enableSmartRendering or enableSmartXMLParsing?


Yes, you can.


7000-nodes tree is not very big. Smart XML Parsing is enough in this case. But if you try to open all nodes at once, the rendering will take rather much time and additional methods won’t help in this case.