I can get the following code to retrieve nodes from an xml file when I click the button:
private void button1_Click(object sender, EventArgs e)
{
XmlDocument document = new XmlDocument();
document.Load(@"c:\config.xml");
XmlNode node = document.DocumentElement.SelectSingleNode("//title");
textBox8.Text = node.InnerText;
}
However I can see how to use the above code and have it load on program execution where information can then be put into a variable to populate parameters like, filename, path, etc.
Any help is appreciated.
private void button1_Click(object sender, EventArgs e)
{
XmlDocument document = new XmlDocument();
document.Load(@"c:\config.xml");
XmlNode node = document.DocumentElement.SelectSingleNode("//title");
textBox8.Text = node.InnerText;
}
However I can see how to use the above code and have it load on program execution where information can then be put into a variable to populate parameters like, filename, path, etc.
Any help is appreciated.