473,769 Members | 5,727 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Save treeView as XML ???

Dear all,

I have a treeView control which is build with different parent and childs
node objects. I try to find out an easy and proper way to save that nodes
architecture in a XML file.

Then reading back that XML file will rebuild the same treenode structure.

Does anyone have any idea or done such thinkg ?

regards
serge
Nov 14 '06 #1
3 4442

Hi serge,

I've built a complete Smart client c# application that loads a treeview
with XML data from a web service.

I started with this article here:

http://support.microsoft.com/kb/317597/en-us
How to populate a TreeView control with XML data in Visual C# 2005 or in
Visual C# .NET
Although I ended up doing a lot of custom work to design my XMLDocument
and how the tree is populated -- loading the nodes, setting colors,
enabling right click etc.
serge calderara wrote:
Dear all,

I have a treeView control which is build with different parent and childs
node objects. I try to find out an easy and proper way to save that nodes
architecture in a XML file.

Then reading back that XML file will rebuild the same treenode structure.

Does anyone have any idea or done such thinkg ?

regards
serge

--
The Texeme Construct
http://you-read-it-here-first.com
Nov 14 '06 #2
Thanks for the link I will give a try.

I still woderware why ther is no such direct thing in the framework for
treeView poupalted with XML in a similar way as datarid and dataset.
May be soon who knows
"John Bailo" wrote:
>
Hi serge,

I've built a complete Smart client c# application that loads a treeview
with XML data from a web service.

I started with this article here:

http://support.microsoft.com/kb/317597/en-us
How to populate a TreeView control with XML data in Visual C# 2005 or in
Visual C# .NET
Although I ended up doing a lot of custom work to design my XMLDocument
and how the tree is populated -- loading the nodes, setting colors,
enabling right click etc.
serge calderara wrote:
Dear all,

I have a treeView control which is build with different parent and childs
node objects. I try to find out an easy and proper way to save that nodes
architecture in a XML file.

Then reading back that XML file will rebuild the same treenode structure.

Does anyone have any idea or done such thinkg ?

regards
serge


--
The Texeme Construct
http://you-read-it-here-first.com
Nov 15 '06 #3
serge calderara wrote:
I still woderware why ther is no such direct thing in the framework for
treeView poupalted with XML in a similar way as datarid and dataset.
3rd party has it

http://www.obout.com/t2/propXML.aspx
For myself, I don't always think of it as a 1:1 mapping and need to
massage the data to and from the tree.

--
The Texeme Construct
http://you-read-it-here-first.com
Nov 15 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
6166
by: R. Sammut | last post by:
Hi, I have a treeview control that is updated every 30 seconds. The treeview nodes are cleared and new nodes (same number of nodes and hierarchy) are added to the treeview. Now I need to save the state of the expanded treeview so that I can apply the same expanded state to the updated treeview. is there something i can do?
1
1194
by: Ravi | last post by:
Hi all. Help needed Regarding vb.net. I have the User Interface of my application, Which has a treeview on the left and a set of panels on the right(which have textboxes). When Ever i Click a node on the treeview the corresponding panel appears in the right. with the respective details. When I add new nodes in the treeview using MenuItems in the fileMenu on the top, a new node is created and then I get empty-fields on the
4
12843
by: J.B. | last post by:
Hi Can anybody show me how to loop all treeview nodes ini vb.net. I've been working on this for days but still no result. I got a sample code in vb 6.0, this one works. Private Sub SaveNested( Dim TNode As Node Set TNode = TreeView1.Nodes(1).Roo While Not TNode Is Nothin
14
15097
by: Mr.D | last post by:
How do I save/load the contents of a Treeview to a file? I have found several good examples written i VB6, but not a single one for VB.NET. Please help. ---- Tim
3
3830
by: christof | last post by:
I've got a really easy problem, please help me: There are two pages in one I'm creating a TreeView like that: TreeView dbTree = new TreeView(); TreeNode dbTreeRoot = new TreeNode("Root"); dbTree.Nodes.Add(dbTreeRoot); .. ..
1
18685
by: cjinsocal581 | last post by:
Hi all, I am struggling with the following: Environement: VB.NET 2005 TreeView Control SQL Database I need to be able to save a TreeView's nodes into a SQL database and then be able to call them from the Table back into the TreeView when the app starts up. (If the table is empty, then just exit the sub)
5
358
by: | last post by:
Is there an easy way to check the checkboxes via Code based on previously saved selection onto a database? Thanks, Victor
1
2194
by: | last post by:
What's the best way to create new nodes on a treeview 2.0 and save them to an xml file? Thanks, Victor
2
2239
by: Polaris | last post by:
Hi Experts: I'm using ASP.NET 2.0. I'm using a TreeView control with a design-time configured XmlDataSource (an XML file). I use the TreeView control as a "message board" with each node representing a message. I noticed that the TreeView loads alright from the XML file but did not save anything. I call the TreeView.Save() for each new node added into the TreeView. What I'm missing here? Thanks in advance!
0
9583
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10210
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9860
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6668
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5297
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3955
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3560
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2814
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.