Click here to Skip to main content
15,905,148 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to read data from xml file to dataset [modified] Pin
B Desai21-Jul-06 9:56
B Desai21-Jul-06 9:56 
Hello All,
Have some problem, and trying since last two days.
I have a xml file something like this:
I am puting just one node.
- <ROW>
<EVENT_ID>2054767</EVENT_ID>
<EVENT_STATUS>Completed</EVENT_STATUS>
<RESCHD_IND>Y</RESCHD_IND>
<VENUE_CHG_IND>N</VENUE_CHG_IND>
<EVENT_DT>09/23/2004</EVENT_DT>
<EVENT_START_TM>06:30:00 PM</EVENT_START_TM>
<EVENT_END_TM>09:30:00 PM</EVENT_END_TM>
- <CITY>
<CUST_ID>357363</CUST_ID>
<TBGID>1</TBGID>
</CITY>
</ROW>

earlier, I have only data upto <EVENT_END_TM>
and I am able to read it in my dataset easily, using the following code:

System.Xml.XmlNode xNode = somemethod;(this method fetch data from webservice-xml file)
XmlNodeReader xReader = new XmlNodeReader(xNode);
ds.ReadXml(xReader, System.Data.XmlReadMode.Auto);

And I am displaying it directly in datagrid by binding it with dataset.

but now, when I am binding it with datagrid with the same procedure, it only display the column headings, and no data in that.
Can anybody know, how to read this nested node data?
Thank you very much.
Robin

<div class="ForumSig"></div>

-- modified at 16:04 Friday 21st July, 2006
AnswerRe: How to read data from xml file to dataset Pin
Grapes-R-Fun21-Jul-06 15:17
Grapes-R-Fun21-Jul-06 15:17 
GeneralRe: How to read data from xml file to dataset Pin
B Desai22-Jul-06 17:20
B Desai22-Jul-06 17:20 
GeneralRe: How to read data from xml file to dataset Pin
Grapes-R-Fun23-Jul-06 8:25
Grapes-R-Fun23-Jul-06 8:25 
QuestionCrystal Reports fail to load in web comonent Pin
icestatue21-Jul-06 9:11
icestatue21-Jul-06 9:11 
Questionneed help about DataView [modified] Pin
mahesh kukkadapu21-Jul-06 9:07
mahesh kukkadapu21-Jul-06 9:07 
AnswerRe: need help about DataView Pin
leckey21-Jul-06 11:51
leckey21-Jul-06 11:51 
AnswerRe: How to pass List collection to a web method??? Pin
Felipe Dalorzo21-Jul-06 7:48
Felipe Dalorzo21-Jul-06 7:48 
GeneralRe: How to pass List collection to a web method??? Pin
JimFeng21-Jul-06 8:37
JimFeng21-Jul-06 8:37 
AnswerRe: How to pass List collection to a web method??? Pin
Felipe Dalorzo21-Jul-06 10:12
Felipe Dalorzo21-Jul-06 10:12 
GeneralRe: How to pass List collection to a web method??? Pin
JimFeng24-Jul-06 7:04
JimFeng24-Jul-06 7:04 
QuestionNot loading ascx in some websites only Pin
SIJUTHOMASP21-Jul-06 6:36
professionalSIJUTHOMASP21-Jul-06 6:36 
QuestionNon Item Selected on RadioButtonList Pin
Armando_Ramirez21-Jul-06 6:33
Armando_Ramirez21-Jul-06 6:33 
AnswerRe: Non Item Selected on RadioButtonList Pin
Grapes-R-Fun21-Jul-06 14:45
Grapes-R-Fun21-Jul-06 14:45 
QuestionType.GetType() Pin
Mircea Grelus21-Jul-06 6:10
Mircea Grelus21-Jul-06 6:10 
AnswerRe: Type.GetType() Pin
Felipe Dalorzo21-Jul-06 8:11
Felipe Dalorzo21-Jul-06 8:11 
GeneralRe: Type.GetType() Pin
Mircea Grelus21-Jul-06 8:28
Mircea Grelus21-Jul-06 8:28 
GeneralRe: Type.GetType() Pin
Felipe Dalorzo21-Jul-06 10:05
Felipe Dalorzo21-Jul-06 10:05 
GeneralRe: Type.GetType() Pin
Mircea Grelus21-Jul-06 10:23
Mircea Grelus21-Jul-06 10:23 
GeneralRe: Type.GetType() Pin
Felipe Dalorzo21-Jul-06 10:40
Felipe Dalorzo21-Jul-06 10:40 
GeneralRe: Type.GetType() Pin
Mircea Grelus21-Jul-06 12:53
Mircea Grelus21-Jul-06 12:53 
Questionreporting tool with printing option Pin
cdotpal21-Jul-06 6:07
cdotpal21-Jul-06 6:07 
AnswerRe: reporting tool with printing option Pin
Dustin Metzgar21-Jul-06 8:49
Dustin Metzgar21-Jul-06 8:49 
GeneralRe: reporting tool with printing option Pin
cdotpal26-Jul-06 6:40
cdotpal26-Jul-06 6:40 
AnswerRe: reporting tool with printing option Pin
Frank Kerrigan21-Jul-06 13:14
Frank Kerrigan21-Jul-06 13:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.