dhtlmXtree: minimizing the XML data file size

We are using the dthmlXtree for the site navigation for a web site. The pages in the site will all reside under a certain virtual path on the site, however, the pages may reside in sub-directories underneath that virtual path. For example:



domain.com/x/y/z/virtual folder/ in the above example) so that it is not a part of the XML tree data for each item in the tree? Since our tree is fairly big, we’re trying to get the XML tree data file as small as possible.



Also, do you have any other suggestions for minimizing the size of the XML data file? It also seems inefficient to repeat “im0=“leaf.gif” im1=“folderOpen.gif” im2=“folderClosed.gif”” for every item in the tree. Is there any way to just define the icons to apply to every item in the tree, thus removing the need to have the optional im0, im1 and im2 atrributes in the XML file?

nefficient to repeat "im0=“leaf.gif” im1=“folderOpen.gif” im2="folderClosed.gif"
Those attrbiutes are optional, tree will use default images, if attributes not specified

>>any way to just define the icons to apply to every item in the tree
    tree.setStdImages(“leaf.gif”,“folderOpen.gif”,“folderClosed.gif”)

>>Is there any way to keep the fixed virtual path externalized
    You can store any additional data in userdata sections


    http://domain.com/x/y/z/virtual folder/
    … other tree data …

In js code it can be accessed as
    tree.getUserData(0,“path”)