Home > Ask the Microsoft .Net Development Experts > .NET Development with XML Questions & Answers > Questions regarding XML for a decision making tool
Ask The Win Development Expert: Questions & Answers
EMAIL THIS

Questions regarding XML for a decision making tool

Daniel Cazzulino EXPERT RESPONSE FROM: Daniel Cazzulino

Pose a Question
Other Win Development Categories
Meet all Win Development Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 24 August 2004
I have to develop a decision making tool which will consist of questionnaires and the user has to rate every category. I have to use XML as data source and the changes made will be stored in the XML file. Some of my queries regarding this are:
1. I am using a tree view on the left side of the form to display the categories present in the XML file. I want to have details of that category and the questions to be displayed on the right side on clicking any of the node of the tree. Since, the questions will be different for each node present in the tree, can someone suggest me any way to achieve this. I think using a datagrid control for changing the questions on click of a tree view node will be an option. Please let me know if it is right.
2. If data grid control can be used is there someway that I can bind data from an XML file to the datagrid control and at the same time have the fields editable?

>
First, there's no easy way of having XML -> datagrid binding with editing capabilities. The only way you have here is using a DataSet loaded from a segment of the XML (the current set of questions) and bound to the datagrid. Placing the results back in the XML document is a matter of taking the XML back from the DataSet, locating the appropriate node in the XmlDocument and assigning its InnerXml.
The solution here depends on how you'll persist user choices when he moves from node to node. Is this all client-side until he clicks some Save button? If this is the case, you will have to do plenty of JavaScript. My guess is that it's not, and you're doing postbacks and reloading a panel or something. Using a datagrid bound to a dataset loaded from the XML for the current category questions is the easiest path, I think.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
XML and Data
Modifying XML rows using XSL sheets
Generating Access data as XML for HTML publishing
Editing datagrids, take two
Creating applications to access data via mobile phones
Is it possible to schedule SQLs written for a paradox database?
Extracting data from Word 6 to populate database
How can I make a connection to a Paradox password protected database?
I have an Access Database that I want to display in a Listview.
Problem with Paradox Connection String
Need an ASP.NET page with a text box and submit button to pull records

.NET Development with XML
Modifying XML rows using XSL sheets
Generating Access data as XML for HTML publishing
Editing datagrids, take two
Creating applications to access data via mobile phones
Is it possible to schedule SQLs written for a paradox database?
Extracting data from Word 6 to populate database
How can I make a connection to a Paradox password protected database?
I have an Access Database that I want to display in a Listview.
Problem with Paradox Connection String
Need an ASP.NET page with a text box and submit button to pull records

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Windows Development - White Papers, News and Expert Advice
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts