Click here to Skip to main content
15,886,077 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

i have an XML file. i want to store a xml data in dataset or arraylist & on pageload when page is reload the name of a image is in this cannot show in the page? can i know how can i do this?

please help me in this...!!

thanks
Posted

 
Share this answer
 
Comments
kaushik2402 12-Sep-11 7:23am    
okey tht's fine.but how can I store the xml data to a variable(which is solved) and use the single node values i.e.

XmlNode ht = document.DocumentElement.SelectSingleNode("/Schedule/AudioVedioPlayer/Height");

somethin like this...
you can use ReadXml to read XML schema and data using specified file to store it in Dataset.

DataSet ds = new DataSet();
     System.IO.FileStream fs = new System.IO.FileStream("XMlFileName", System.IO.FileMode.Open);
      ds.ReadXml(fs);
 
Share this answer
 
Comments
adadsadsasd 2-Sep-11 2:29am    
thanks it help me a more.. but can i know how can i see a data which is in dataset..
kaushik2402 12-Sep-11 7:25am    
yep adadsadsasd u just steal my words.tht's the thing also I want.
RaviRanjanKr 12-Sep-11 8:32am    
What ? I am not getting Kaushik.. What's do you want to say.. :)

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