Alternatives
Members may post updates or alternatives to this current article in order to show different
approaches or add new features.
15 Jan 2011Anupama Roy 2 alternatives
Reading XML documents using LINQ
18 Jan 2011Richard Deeming
Another option would be to use the Elements extension method[^]:var root = XElement.Load("Books.xml"); var books = from node in root.Elements("Book").Elements("Subject") select node.Value.Trim(); foreach (string subject in books){ listBox1.Items.Add(subject);}
Since I've begun my profession as a software developer, I've learned one important fact - change is inevitable. Requirements change, code changes, and life changes.
So..If you're not moving forward, you're moving backwards.