By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,082 Members | 2,108 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,082 IT Pros & Developers. It's quick & easy.

Export Treeview to Array, Save to XML

P: n/a
I'm building a Task program. I've got the XMLTextReader working: opening &
parsing the XML files, and propagating the TreeView with nodes & childs.
But I don't know how to export out the contents of the TreeView into an
Array. I then want to take the array and use XMLTextWriter to build an XML
file that will be saved to the local disk.

Nov 15 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a

You can directly use SoapFormatter as mentioned in the following post:

Or you can loop through the root node recursively until you find the children
and serialize it manually.
There is no direct sample available; however, the VB .net code in the following
article will give you some idea although it is exactly opposite of what you
want to do. You will need to work it backward fashion.

308063 HOW TO: Populate a TreeView Control with XML Data in Visual Basic .NET

Hope this helps!
Bharat Patel
Microsoft, Visual Basic .NET

This posting is provided "AS IS" with no warranties, and confers no rights.
Please reply to newsgroups only. Thanks.

Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.