I have an xml file that I need to read. The format is as follows:
I need to write a loop for each project node that gets the values of each of the child nodes. There can be more than one ExcludeFolder.
I'm using the following to iterate through the XML document, but need to modify it to perform some type of loop for each project node.
static void Main(string args)
if (args.Length > 0)
XmlDocument xml = new XmlDocument();
foreach (XmlNode node in xml.DocumentElement)
catch (Exception ex)
Console.WriteLine("Error! Configuration File Not Found.");
Console.WriteLine("Error! No Configuration File Specified.");
static void ReadNode(XmlNode node)
Thanks for help. This is my first time working with XML so if I have started down the wrong path, feel free to point it out!