views:

63

answers:

1

I'm creating an application with a help system based on XML. I need to know how to populate TreeView and ListView controls with XML data (specification below).

  • TreeView: <root> and <topic> tags.
  • ListView: <document> tag (with group and icon dependent on if it's a web link or local file link, but I can do it).

Can somebody help?

A: 

XML can be used via ADO.NET or LINQ like any other data source, so using LINQ you can populate a Tree-View.

Here is an excellent HOW-TO article on how to do it:

http://aspnet.4guysfromrolla.com/articles/043008-1.aspx

Todd Moses
That is for APS.NET, WinForms is different.
Henk Holterman
ADO.NET for XML ??? I'd be curious to see that...
Thomas Levesque
Thomas, look for XmlDataDocument.
Henk Holterman
Did you actually look at tags? I was looking for something for winforms, not webpages...
MinkoSoft