ConfigNode parentNode = new ConfigNode("Parent"); parentNode.AddNode("Child1"); parentNode.AddNode("Child2");
ConfigNode node = new ConfigNode("Node"); node.AddNode("Subnode1").AddValue("Value1", "Hello"); node.AddNode("Subnode2").AddValue("Value2", "World");This example creates a new ConfigNode object with the name "Node" and adds two child nodes, "Subnode1" and "Subnode2". It then adds a value to each of the child nodes, "Value1" with the value of "Hello" and "Value2" with the value of "World". The System ConfigNode AddNode method is a part of the System.Configuration package library.