473,322 Members | 1,703 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

XML formated string as datasource for datagrid?

Jim
I have this string available to me stored in a varable. How can I transform
this string so that I can use it in a datagrid, to set the headings and fill
the grid?

sXML =
<Results><Result QID="1" Question="Do you make thoughtless remarks or
accusations which you later regret?" AID="1" Response="Yes"
Score="2"/><Result QID="1" Question="Do you make thoughtless remarks or
accusations which you later regret?" AID="3" Response="No"
Score="6"/><Result QID="2" Question="Is it hard on you when you fail?"
AID="3" Response="No" Score="6"/><Result QID="3" Question="When others are
getting rattled do you remain fairly composed?" AID="1" Response="Yes"
Score="6"/><Result QID="4" Question="Do you find yourself being extra active
for periods lasting several days?" AID="3" Response="No" Score="6"/><Result
QID="5" Question="Do you browse through railway timetables, directories or
dictionaries just for pleasure?" AID="1" Response="Yes" Score="6"/><Result
QID="6" Question="Do you resent the efforts of others to tell you what to
do?" AID="3" Response="No" Score="4"/><Result QID="7" Question="When asked
to make a decision would you be swayed by your like or dislike of the
personality involved?" AID="3" Response="No" Score="6"/><Result QID="8"
Question="Is it normally hard for you to &quot;own up and take the
blame&quot;?" AID="3" Response="No" Score="6"/><Result QID="9" Question="Do
you intend two or less children in your family even though your health and
income will permit more?" AID="3" Response="No" Score="5"/><Result QID="10"
Question="Do you have a small circle of close friends rather than a large
number of friends and speaking acquaintances?" AID="3" Response="No"
Score="5"/><Result QID="11" Question="Are your actions considered
unpredictable by others?" AID="3" Response="No" Score="5"/></Results>
Nov 20 '05 #1
0 1077

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: DraguVaso | last post by:
Hi, I need a function that gives me the number of Columns shown in a DataGrid. So I don't need to know the number of columns shown in tha DataSource, because this number can be completely...
12
by: James Norton-Jones | last post by:
Hi, Am I trying to hold the data of a DataGrid in a label so that when the form is reposted the DataGrid can be repopulated. The problem I am having is that I don't understand how to get the...
4
by: dyw55a | last post by:
Donna Mar 15, 10:11 am show options Newsgroups: microsoft.public.dotnet.framework.adonet From: "Donna" <dyw...@yahoo.com> - Find messages by this author Date: 15 Mar 2005 10:11:56 -0800...
6
by: vips | last post by:
Page_Load datagrid1.datasource=dataset1 //I am filling the datagrid and it works fine when page is displayed end ---------------
6
by: Eric Broers | last post by:
LS, Assume I have a datagrid, which is filled by an SQL statement (Select * from Customer). The Customers table contains 4 columns and 10 rows. Now, I want to fill 10 strings with the datagrid...
2
by: AA | last post by:
Do anyone know how to refresh the datagrid without setting datasource to nothing and initialize the grid again? My case is that I have form consisting from two part. The upper part is a datagrid...
2
by: Damon Gravning via DotNetMonster.com | last post by:
I am trying to use one function to handle a SelectedIndexChanged event for 5 radio button groups that correspond to 5 populated Datagrids. The radio buttons have a choice of 5,10 25 for a...
7
by: Mukesh | last post by:
Hi all I have to transfer a dataset and a string from a webform to a user control on the page without using viewstate or session or cookies . properties method is not working properly. if...
6
by: =?Utf-8?B?ZGF2aWQ=?= | last post by:
When I check the syntax of dataset, It seems that dataset can only read data from file. (e.g., datset.read(string filename), dataset.readxml(string filename)). If I have a string with XML format...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.