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

I have data in XML i want to populate my XML data into text boxes can u guide or send any snippets
Posted
v2

 
Share this answer
 
Comments
kesav prakash 28-May-13 5:02am    
i need to read all the attributes inside the element can u help me
Check the DataSet formed after this line by debugging.

ds.ReadXml(XMLFilePath);

You may find the values inside that.
kesav prakash 28-May-13 7:37am    
i got the right solution through this dataset thank u tadit dash
Most Welcome... :)
What about the documentation "How to read XML from a file by using Visual C#"[^]?
 
Share this answer
 
v2
Comments
kesav prakash 28-May-13 4:39am    
by windows application i need to read all the keys and their values in a text box or any other editable
C#
DataSet dstest=new DataSet();
string filePath = "Complete path where you saved the XML file";
dstest.ReadXml(filePath);
 
Share this answer
 
v3
Comments
kesav prakash 28-May-13 5:03am    
i need to read all the attributes inside the element can u help me to read the attributes in textbox

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