Display data from XML into textbox

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi. I was working on various ways of reading and writing data (VS 2010) with C# to a Windows Form. I was searching if anyone could help me out in reading and displaying the data from an XML file(C:\temp.xml) to TextBoxes in Windows form.

I have written the data successfully to XML file using XMLWriter and now wants to read and show the dataIf there is a file(temp.xml) existing already in C: then form should disable any entry further and just display the data.
Here is my sample XML data:<br/>

<?xml version="1.0" encoding="utf-8"?><br/>
<users><br/>
<info><br/>
<Name>swp</Name><br/>
<ID>SW8644</ID><br/>
</info><br/>
<payment><br/>
<Date>Dec 11, 2012</Date><br/>
<Amt>200,000</Amt><br/>
</payment><br/>
</users><br/>

I would appreciate if I can get an accurate and not-so-complex answer. Thanks :)

View the full article
 
Back
Top