I basically want to print out just the names of my XML document into a textbox.
All this does it print the first name.
XmlDocument xDoc = new XmlDocument();
xDoc.Load("my documents address");
TextBox2.Text = xDoc.SelectSingleNode("Web_Service/Food/Name").InnerText;
What I'd like to do is something like this...
String[] output;
XmlDocument xDoc = new XmlDocument();
xDoc.Load("my documents address");
foreach(Name i in xDoc){
append i to output;
}
TextBox2.Test = output;
Or something similar. If someone could help me I'd really appreciate it.
So it prints out:
Curry, Chicken, Burger, Steve, Spices, etc.
No comments:
Post a Comment