Best WinForm approach to presenting XML file in a pretty manner?
-
Hi all, I have an xml file that I want to make a small app to present its contents in a convenient way to the user. Nothing especially fancy is needed here - a pane for a treeview so the user can select what he or she wants to look at, a panel for displaying the selection(s), and the facility to load the file in the first place. I'm thinking this would be a good time for me to get familiar with linq2xml (linq noob here), but wanted to see if there were other equally-or-better good routes to go as well. Thx! -sff
-
Hi all, I have an xml file that I want to make a small app to present its contents in a convenient way to the user. Nothing especially fancy is needed here - a pane for a treeview so the user can select what he or she wants to look at, a panel for displaying the selection(s), and the facility to load the file in the first place. I'm thinking this would be a good time for me to get familiar with linq2xml (linq noob here), but wanted to see if there were other equally-or-better good routes to go as well. Thx! -sff
sherifffruitfly wrote:
a pane for a treeview
Why not simply load the whole XML document into the TreeView?
-
sherifffruitfly wrote:
a pane for a treeview
Why not simply load the whole XML document into the TreeView?
No major reason - I just think of treeview data situations a 2-paned affairs is all. Possibly that's an out-moded frame of mind. I was more interested in alternative methods of getting the data to the app in the first place though, I can fiddle with it once it's there in a variety of ways. :)