/// <summary> /// This function is used to return the root node of a configuration file. /// </summary> public XmlNode Config(string filePath) { MtaElement mtaNode = MtaShared.GetResourceConfig(filePath); XmlDocument document = new XmlDocument(); XmlNode xmlNode = document.CreateElement(MtaShared.XmlNodeGetName(mtaNode)); /* * [[ * xmlNode:index(mtaNode) * ]] */ return(xmlNode); }