Click here to Skip to main content
15,916,180 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
Hi

i have xml which i want to read into dataset..and then i want to read xmlelement from dataset using name..so for exp, i have xml like

<startval>

<nameval>bsabbabbsabbaab</nameval>

<nameval>nbsabbabbsabbaab121</nameval>

<nameval>tbsabbabbsabbaashashb</nameval>

<nameval>ebsabbabbsabbahahab</nameval>

<nameval>abgdgsabbabbsabbaab</nameval>

<nameval>cdfbsabbabbsabbaab</nameval>

<lastval>basbbnasb</lastval>

</startval>


Now from these , i want to add full xml into dataset,, so i use

C#
DataSet dsStartxml = new DataSet();

dsStartxml.ReadXmlSchema("C:/Test/reras.xml");


and when i check dataset , i get all into dataset..but if i want to read from all nameval into gridview or listview , and any single element like lastval into label , how to do this

pls advice with good example for the above

regards

maulik shah
Posted
Updated 6-Apr-14 22:09pm
v2

1 solution

Since you already got all the XML data into the dataset, your problem now is filling the gridview (or the listview) with dataset values (and so on). You may find many examples just Googling for[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900