Writing TreeView Contents To XML

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Robert Gale (robgale_at_gmail.com)
Date: 10/12/04


Date: 11 Oct 2004 23:40:07 -0700

I am writing an RSS reader in C# and I'm trying to write the contents
of a TreeView to an XML file. I have tried using XmlWriter and have
managed to write simple tree structures but I get confused when it
comes to dealing with complex tree structures such as those that have
multiple folders and sub folders.

I have tried searching Code Project and the Net but haven't had much
joy in finding a solution. I have only been using C# for a few months
and my programming knowledge is fairly limited.

Is XmlWriter the best way to write out a TreeView? How would you go
about going through each of the folders and writing the feeds within
them?

If there is anything else that I need to include let me know.



Relevant Pages

  • Re: Writing TreeView Contents To XML
    ... > comes to dealing with complex tree structures such as those that have ... > multiple folders and sub folders. ... > Is XmlWriter the best way to write out a TreeView? ... > about going through each of the folders and writing the feeds within ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Web Part w/ IE Treeview reference throwing error
    ... I'm loading the dll and writing out the error in trace information. ... >> I'm developing a navigational web part that uses the IE treeview ... >> to a line where I instantiate the treeview. ...
    (microsoft.public.sharepoint.portalserver)
  • windows forms and arguments
    ... i am writing a project that uses a treeview as its main application ... navigation for the many parts of the program. ... Simon Whale ...
    (microsoft.public.dotnet.framework)
  • Controling a components subcomponents
    ... I'm writing a component that has to be linked to a treeview and a Listview, ... so it has a treeview and a listview property. ... then the code in the onclick event is not executed. ...
    (alt.comp.lang.borland-delphi)
  • Re: Node
    ... I am writing a function that creates a node and then adds subnodes to it and ... subnodes to the treeview. ... With your example the nodes are already in the treeview and that's what I ... >> MyNode ...
    (borland.public.delphi.language.objectpascal)