public static void GetMbprojxmls(string moduleName) { string mbprojPath = ModuleHelper.GetMbprojPath(moduleName); if (!File.Exists(mbprojPath)) { return; } XmlDocument xmlDocument = new XmlDocument(); xmlDocument.Load(mbprojPath); XmlNodeList xmlNodeList = xmlDocument.SelectSingleNode("base").SelectNodes("file"); if (xmlNodeList == null) { return; } foreach (XmlNode xmlNode in xmlNodeList) { string innerText1 = xmlNode.Attributes["id"].InnerText; string innerText2 = xmlNode.Attributes["name"].InnerText; MbObjectXmlInformation objectXmlInformation = new MbObjectXmlInformation() { Id = innerText1, Name = innerText2, ModuleName = moduleName, GameTypesIncluded = new List <string>() }; XmlResource.MbprojXmls.Add(objectXmlInformation); } }