TREEVIEW - xmlDocument - how to....?

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi,

I can find lots of references in using Asp.Net 2.0 treeview to bind to
more simple xml, but not that shows how to use it with elements AND
attributes. For example, here is the type of document I'm trying to
use:

<Process name="Testing" required="yes" startdate="3/15/06">
<Instruction title="Testing Instructions" doc="test.xml" start=""
finish"" />
<Instruction title="Testing Two" doc="test2.xml" start="" finish"" />
</Process>

I would like the treeview to do this:

Process
name
required
startdate
Instruction
title
doc
start
finish
Instruction
title
doc
start
finish

My goal is to allow the user to click on the node (element OR attribute)
and show a little edit form where they can make changes and save them
back to the document.

Again, all examples I can find don't show how to use the actual element
attributes in this way.

Help greatly appreciated.

Thanks,
Kit







*** Sent via Developersdex http://www.developersdex.com ***
.



Relevant Pages

  • Re: Help on Filtering XML nodes ???
    ... The XPath expression is: ... > I have read that XML format is particular usefull to be bind to a treeview ... So I have try to save my dataset content into a xml ...
    (microsoft.public.dotnet.general)
  • Help on Filtering XML nodes ???
    ... then I need to bind part of the content of the dataset to a treeview control. ... So I have try to save my dataset content into a xml file. ... I have seen that for filtering nodes we need to us Xpath but how to define ...
    (microsoft.public.dotnet.general)
  • binding TreeView to XML file
    ... Is there anyway to bind a XML doc to the windowsforms.TreeView? ... "HOW TO: Populate a TreeView Control with XML ... but this article talks about how to populate the TreeView manually ...
    (microsoft.public.dotnet.framework.windowsforms.databinding)
  • Binding to a TreeView
    ... I have a DataTable which I represent in a TreeView rather ... I would like to bind a property of the Tag of the selected TreeNode ... Can this be done by means of binding? ...
    (microsoft.public.vb.database)
  • HELP - Binding Treeview to xmldatasource then Updating
    ... Hi - I'm hoping some can help me out cuz I'm driving myself nuts with this. ... I can bind a treeview control to a xmldatasource control just fine. ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)