CSharp XML

Last Updates: 2002

 

Reading an XML File

XmlDocument doc = new XmlDocument();
doc.Load("TestSettings.config");
XmlNode node = doc.SelectSingleNode("settings//ImageDir");
if (node==null) Console.WriteLine("Null");
else Console.WriteLine(node.InnerText);

Back to Topic List 


 

 
 

Back to Topic List