Hi,
I have an xml file with x items.
i want to display it all in text buttons?
how can i do this
using c# 4.0
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sam HobbsPosted Apr 3, 2011, 1:20 PM
VulpesPosted Apr 3, 2011, 12:33 PM
However, my second post on this thread (http://www.c-sharpcorner.com/Forums/Thread/115470/struggling-to-find-a-suitbale-way.aspx) shows how to read an XML file using LINQ and assign the various items to properties of custom classes.
It's then just a matter of assigning these properties (suitably converted) to the properties of the controls on the form.
Sam HobbsPosted Apr 3, 2011, 5:34 AM
XML .NET
If that does not help then please clarify what it is that you need help with.
joao carlosPosted Apr 2, 2011, 10:08 PM
Mahesh ChandPosted Mar 28, 2011, 10:18 PM
Reading and Writing XML in C#
In this article, you can learn how to read an XML file. You can read a node from XML (value or attribute) and once you get the value in string, you can set Text property of a TextBox.