Anthony Prato wrote:
> can you sort your query by the depth? thats the easiest way because
> you can just loop over the query adding a node at a time. (group by
> parentFolder order by depth) When you order by depth you don't need to
> worry if the parrent exists in the XML DOM yet because the parent will
> always apear before the child in the query. Otherwise you'll need to
> find the root create it, find the children of root, create them, find
> their children... etc. (you'll need either a recursive function or a
> whole bunch of loops

well i think i can figure depth from the folder's full name 
(INBOX.test.testDir, counting the number of folder separators in the 
name) so this looks close. thanks i'll give it a whirl.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216098
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to