How to export the dynamically modified Tree to XML

26 views
Skip to first unread message

compilable

unread,
Jun 16, 2011, 11:15:28 PM6/16/11
to mootree
Hi,

How can we export the dynamically modified list to an XML file for
future use? Is this feature is available in the current version ?

Kind regards,
Compilable

mindplay

unread,
Jun 17, 2011, 4:21:21 PM6/17/11
to mootree
Assuming your entire tree is in memory (nothing loaded dynamically),
walking the tree with a recursive function and exporting the values
you want should be fairly easy.

The component itself does not offer any kind of export ability for the
entire tree - such a feature would not work consistently when you have
partially loaded trees. A better strategy might be to capture changes
to the tree, using event handlers, if submitting all the changes at
the same time is a requirement - if that's not a requirement, I think
I would prefer to post each change to the tree asynchronously,
directly from the even handlers...

Aeron Chamarasinghe

unread,
Jun 20, 2011, 4:10:57 AM6/20/11
to moo...@googlegroups.com
Thank you very much for the prompt reply. I thought of going ahead with accessing the tree which is already available in the memory.

Kind regards,
Compilable

--
You received this message because you are subscribed to the Google Groups "mootree" group.
To post to this group, send email to moo...@googlegroups.com.
To unsubscribe from this group, send email to mootree+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mootree?hl=en.


Reply all
Reply to author
Forward
0 new messages