//used to parse the xml to get the directory information
 private string parseDir(string path)
 {
     ParseXml.Parse parse = new ParseXml.Parse();
     if (parse.loadXml(path) == false)
     {
         Console.Write("\n Unable parse the Xml file!");
     }
     return(parse.parseDir("test"));
 }
        //build mother sends the sources conresponding the request file to child builder
        private void sendSourceToChild(Sender snd, string XmlFile)
        {
            Sender s = snd;

            ParseXml.Parse parse = new ParseXml.Parse();
            if (parse.loadXml(XmlFile) == false)
            {
                Console.Write("\n Unable parse the Xml file!");
            }
            string dir            = parse.parseDir("test");
            string SourceFilePath = "..\\..\\..\\ProcessMother\\" + dir;

            string[] sourceFiles = Directory.GetFiles(SourceFilePath, "*.*");
            foreach (string file in sourceFiles)
            {
                s.postFile(file);
            }
        }