Okay, XML folks,
How do I parse through Xml file to locate a specific node. The xml file is configuration information taken from a Windows form. The information is displayed in TabPages to the user. The configuration information is written to a Config Class with public properties. The public properties get their value from the xml file.
The first level tag is constant. It will always have the value "configuration". The second level tag can change based on the TabPage Tag value. The tags, property, name, value, type will always be there.
I have the following xml example:
<configuration> // This remains constant
<DBSettings> // This element name is not constant. It changes based on TabPage Tag value
< property> // This is constant
<name>DBServer<\name> // element name is constant. contains the name of a Classes property
<value>ServerName<\value> // element name is constant. contains the value of the previous property name
<type>System.String<\type> // element name is constant. Contains the system type for property
There will be multiple properties entries between the second level tags. And like I said, the second level tags may change their name. I need to get the value of the LogDirectory for example.